kentico_edwardh
-
5/7/2012 2:30:08 PM
RE:Strange Mixed-Mode Template/Document Type Behavior
Hello,
One of the downfalls to ASPX page templates is that the code of a page must be modified manually every time you wish to change its design. Version 6.0 added the option of Adding portal engine functionality to ASPX templates by defining areas that can be edited directly through the browser in the CMS administration interface, just like when using the Portal engine development model.
When using the CMSPagePlaceholder control, this will create an area on the page that behaves similarly to a portal engine page template, which included web parts on the page. Each CMSWebPartZone control represent a fully functional portal engine zone. These zones are managed when editing a page based on the page template on the Edit -> Design tab of CMS Desk. When a web part/widget content is added to a zone, information about it is stored in the database along with the respective page template object, not in the actual code of the ASPX page. This approach combines the standard architecture and development process of ASPX templates with the flexibility and user‑friendliness of the portal engine.
Web parts are not saved to the document itself, instead they are saved directly to the page template. If you have webpart_1, webpart_2, and webpart_3 saved to template_1, these webparts will show on any document that is using template_1. Likewise, if you edit these webparts on any document that is using template_1, this change will be reflected across all documents that use template_1.
Best Regards, Edward Hillard
|