ASPX templates
Version 5.x > ASPX templates > Missing something obvious about page templates View modes: 
User avatar
Member
Member
sammy - 2/1/2014 6:47:03 PM
   
Missing something obvious about page templates
Hi All,
I'm missing something obvious about page templates. I have an inner page layout, that is different than the home page.

right now, if I go to the page template layout page, all i have are zones, like:


<!-- Left zone -->
<div class="zoneLeft" style="float: left;">
<cc1:CMSWebPartZone ID="zoneLeft" runat="server" />
</div>
<!-- Content -->
<div class="zoneContent" style="float: right;">
<cc1:CMSWebPartZone ID="zoneContent" runat="server" />
</div>
<div style="clear: both;"></div>



How do I add a cssmenu webpart to the layout, so I don't have to add it to each individual page that uses this template?

Thanks for understanding such a noob question.


User avatar
Member
Member
sammy - 2/1/2014 6:48:29 PM
   
RE:Missing something obvious about page templates
Or even a breadcrumbs control? How would I add that in there?

User avatar
Certified Developer 13
Certified Developer 13
kentico_josefd - 2/14/2014 6:41:07 AM
   
RE:Missing something obvious about page templates
Hi Sammy,

Are you talking about a Portal page, or ASPX template? With ASPX Template you should not see the layout tab, as the template and all web parts are defined in a physical ASPX file.

With Portal page template the layout defines web part zones, in which you can then place web parts in the Design tab of the Document you are editing. Those web parts are part of the template and will be available on any document using that template.

If you are using any Editable web parts and filling out their content in the Page tab, then this content is not part of the template, it is so called Page-specific content. This allows content designer to predefine document Design and leave filling out the content of each page to the content editor.

If you wish to add a text or other content to the template which should show on any document using the template, use Static text or Static HTML web part. Alternatively, you can also enter Default text in the Editable text web part properties which will show up if no other content is entered in the Page tab.

You can find more information about how templates work in our Portal page and ASPX tutorials.

Regards,
Josef Dvorak