ASPX templates
Version 2.x > ASPX templates > webparts in aspx templates View modes: 
User avatar
Member
Member
markm@devotion.com.au - 11/16/2007 12:46:19 AM
   
webparts in aspx templates
Hi,

Does anyone know where i can find a simple example of a aspx page template with a webpart zone correctly defined ?

There seems to be a big gap in the documentation regarding webparts and aspx page templates.

when i add the webpart tag as below i get the following error
<cc2:CMSWebPartZone ID="zoneTop" runat="server" />

gives error 'Parent CMSPagePlaceholder not found.'

thanks in advance

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 1/29/2008 2:04:20 PM
   
RE:webparts in aspx templates
Hi,

could you please take a look to our developers guide in section about creating ASPX page tempaltes (http://www.kentico.com/docs/devguide/creating_a_new_aspx_page_templ.htm)

It makes no sense to use zones in ASPX templates as you can define in the code what you want and where you want, you can also use the containers.

Moreover, you can take a look into this folder: \CMSTemplates\CorporateSiteASPX\*.* and here you can see the ASPX pages with web parts (controls in this case).

Best regards,
Juraj Ondrus

User avatar
Member
Member
chris.brown-swinc - 6/24/2010 2:15:00 PM
   
RE:webparts in aspx templates
But there are no examples using webpart zones. Just embedding webparts.

How does one create an ASPX template with webpart zones ... so webpart(s) can be added when the template is used? Is this possible?

Thanks,
Chris

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/25/2010 12:33:45 AM
   
RE:webparts in aspx templates
Hi,

I do not understand the meaning to use web part zones in ASPX templates - in ASPX code you have the full control of the layout, so you can place the web parts and controls where ever you want. If you want to give the ability to add/remove web parts to the editors or CMS Desk users, you have to use portal engine approach.

Best Regards,
Juraj Ondrus

User avatar
Member
Member
eric.rovtar-hudsonchapel - 7/23/2010 9:40:39 PM
   
RE:webparts in aspx templates
I understand what you're saying, but I also think the request is relevant. I'm a web developer, so I prefer coding my own pages, but it'd be nice to create a template that others can help manage by adding web parts to (like Editable Regions or Images).

The people I work with just aren't going to be able to create a custom ASPX template.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 7/24/2010 4:40:21 AM
   
RE:webparts in aspx templates
Hi,

We are aware of this and we are in the process of integrating ASPX and portal templates together. But as a developer you can imagine that this is very difficult to do and to ensure every possible scenario and that users can do various combinations. It is not that easy, but we are working on it and in one of the future versions, the Design tab will be present for ASPX templates too.

Best regards,
Juraj Ondrus