Structure on CMS using MasterPage concept

giang le asked on April 2, 2014 21:46

Dear all, I developing a website and using MasterPage concept follow link I have a question:I always have to using ad-hoc template for all page?If no, when don't i have to using ad-hoc template? Ex: MaterPage

<div id="wrapper" class="clearfix">
    <div id="header">
        <cms:CMSWebPartZone runat="server" ID="webpartZoneHeader" ZoneTitle="Header zone" />
    <div id="container">
        <cms:CMSWebPartZone runat="server" ID="webpartZoneContent" ZoneTitle="Content zone" />
    <div id="footer">
        <cms:CMSWebPartZone runat="server" ID="webpartZoneFooter" ZoneTitle="Footer zone" />

Ad-Hoc Template StaticPage and drag a webpart "Editable text" Create two page (private policy and term of use) in StaticPage.What should i do to create them without ad-hoc template.

Image Text

Recent Answers

Brenden Kehren answered on April 3, 2014 07:29

You can save the ad-hoc templates as new templates that can be used on other pages simply by going to the properties tab of the document and clicking on Template. Although when you create a new page with a layout and don't use an existing template, it creates an ad-hoc template, those cannot be reused with any other page so I simply "save as" a new template as soon as I create the page. They are easier to manage as well.

0 votesVote for this answer Mark as a Correct answer

giang le answered on April 3, 2014 21:42

Hi Brenden Kehren! Thank for your answer! But I know the way to create a ad-hoc template and i used it for my project. Because Kentico engineer reviewed code and structure of my project and he comment "change needs to be done on all pages that need to reflect such design/functional change separately due to the fact you're using ad-hoc templates for most of the pages" I just only ask that "How to create a page without ad-hoc template to when modify this page not impact other pages"

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 4, 2014 07:01

To answer your question, no you don't always have to use ad-hoc page templates. What I was providing you was a way to save those ad-hoc templates as actual templates you can pick from when you create a new page. What the Kentico engineer is saying is since you have ad-hoc templates and I'm guessing many of them, your changes will not replicate across all the pages because its a 1 to 1 relationship with a page and an ad-hoc template. Whereas if you create a template you can use it across many pages on your site thus, if you make a change on that 1 template, it will replicate across all the pages that use it.

You might read up on shared layouts and re-using ad-hoc templates. They should get you going in the right direction.

0 votesVote for this answer Mark as a Correct answer

Richard Sustek answered on April 6, 2014 02:29


Thank you for your message.

You dont have to create ad-hoc templates when you want to share the same template (with webparts!) through several pages. Once you want to have a page that has its own set of webpart which is different from the original template you would need to create ad-hoc template because if you didnt those changes you would do would get transfered to all other pages with this template.

Kind regards,

Richard Sustek

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.