|
Member
|
sansugoi_sayounara-hotmail
-
12/6/2011 1:34:03 AM
Regarding page templates
Hi all,
I have created master template and that is working fine, then I create one internal template, and apply that to one internal page, but when I again select that template for another page then all the webparts added in the first internal page also displayed..Can anyone please guide me how to get the template only with webpartzones, otherwise I have to create so many templates for each page .. please guid eme.. this is very urgent.....
|
|
|
Kentico Consulting
|
kentico_borisp
-
12/6/2011 2:10:24 AM
RE:Regarding page templates
Hello,
This is the standard behavior for any template-based setup. If you want to use a different layout or web part set you need to clone the given template as an Ad-hoc template. This can be done in CMSDesk / <your document> / Properties / Template.
Best regards, Boris Pocatko
|
|
|
Member
|
sansugoi_sayounara-hotmail
-
12/6/2011 2:38:54 AM
RE:Regarding page templates
Hi Boris,.
Thanks for quick reply.. I also did the clone as adhoc template and check the checkbox, inherit master page only, but still it is showing the content of the other page...
|
|
|
Kentico Consulting
|
kentico_borisp
-
12/6/2011 2:54:13 AM
RE:Regarding page templates
Hello,
If that's the content of the template before you've cloned it then this is by design. Now, if you change the ad-hoc template the changes shouldn't affect the template form which the ad-hoc template was created from.
Best regards, Boris Pocatko
|
|
|
Member
|
sansugoi_sayounara-hotmail
-
12/6/2011 2:59:27 AM
RE:Regarding page templates
Hi Boris,
Thanks for your quick reply.. I have created a template named "internal" , then I create a new page and apply that template on that page and aded the content in that page.
Now I create another page and at the time of creation I select the internal template again, but when I go to design, it is displaying the webparts addded in the first page..Is it possible to create a single template and use in all the page except master page..
Thanks again Sansugoi
|
|
|
Kentico Consulting
|
kentico_borisp
-
12/6/2011 3:11:56 AM
RE:Regarding page templates
Hello,
Yes, this is the correct behavior. In your setup, if you create the internal template now every time you use it it will display the same content on every page. If you modify one instance of this template, it will affect every page where this template is used. You need to create an ad-hoc page to break this "inheritance".
Best regards, Boris Pocatko
|
|
|
Member
|
sansugoi_sayounara-hotmail
-
12/6/2011 3:20:26 AM
RE:Regarding page templates
Hi Boris,
Thanks again fro quick reply...You mean to say the forst I need to create a adhoc page then create other pages, and on adhoc page no need to put any content..
If I want different template on some page, different template on some other pages, similarly 3rd template on siome other pages.. Then Do I need to create 3 adhoc pages, and in that case if i will create 3 adhoc pages then the pages will take which adhoc page template.. please guide..
I am here by pasting the code for master, and internal page please guide me if the templates are correct...
MAster
<div id="main"> <!-- Logo --> <div class="logo"> <cc1:CMSWebPartZone ID="zL" runat="server" /></div> <div class="head2"> <!--top menu starts here --> <div class="tlink"><cc1:CMSWebPartZone ID="zTM" runat="server" /></div> <!--top menu end here --> <!--search starts here --> <div class="sch"> <cc1:CMSWebPartZone ID="zS" runat="server" /> </div> <!--search end here --> <!--ph starts here --> <div class="ph"><cc1:CMSWebPartZone ID="zPH" runat="server" /> </div> <!--ph end here --> </div> <!--tab link starts here --> <div class="tab"> <div id="glowmenu" class="glowingtabs"> <cc1:CMSWebPartZone ID="zM" runat="server" /> </div> <!--tab link end here --> </div> <!-- header end here --> <!--banner starts here --> <!--<div class="baan1"> <div class="b1"><cc1:CMSWebPartZone ID="zB" runat="server" /></div> <div class="b2"> <div class="b02"> <cc1:CMSWebPartZone ID="zGEQ" runat="server" /> </div> <div class="b03"> <div class="acbox"> <cc1:CMSWebPartZone ID="zCG" runat="server" /> </div>--> <!--login starts here --> <!--<div class="lbox"> <cc1:CMSWebPartZone ID="zLOG" runat="server" /> </div>--> <!--login end here --> <!--</div> </div> </div>--><!-- #EndLibraryItem --><!--banner end here --> <!-- content starts here --> <div id="container"> <cc1:CMSWebPartZone ID="zContent" runat="server" /> </div> <!-- content end here --> <!--foot starts here --> <div class="foot"> <div class="foot"> <div class="foot02"></div> <div class="foot2"> <div class="footw"> <div class="footp1"> <cc1:CMSWebPartZone ID="zfp1" runat="server" /> </div> <div class="footp2"><cc1:CMSWebPartZone ID="zft1" runat="server" /></div> </div><div class="footw2"><cc1:CMSWebPartZone ID="zfooterlink1" runat="server" /></div>
</div> <div class="copytxt"><cc1:CMSWebPartZone ID="zcopy" runat="server" /></div> <div class="trmtxt"><cc1:CMSWebPartZone ID="zfooterlink2" runat="server" /></div> </div> </div>
<!--foot end here --> </div>
Internal:
<div class="baan2"><img src="/Web059628/images/img5.aspx" alt="Leave Your Worries to us" /><img src="/Web059628/images/img6.aspx" alt="Leave Your Worries to us" /><img src="/Web059628/images/img7.aspx" alt="Leave Your Worries to us" /></div> <div id="container"> <cc1:CMSWebPartZone ID="zContent" runat="server" /> </div>
Home:
<!--banner starts here --> <div class="baan1"> <div class="b1"><cc1:CMSWebPartZone ID="zB" runat="server" /></div> <div class="b2"> <div class="b02"> <cc1:CMSWebPartZone ID="zGEQ" runat="server" /> </div> <div class="b03"> <div class="acbox"> <cc1:CMSWebPartZone ID="zCG" runat="server" /> </div> <!--login starts here --> <div class="lbox"> <cc1:CMSWebPartZone ID="zLOG" runat="server" /> </div> <!--login end here --> </div> </div> </div><!-- #EndLibraryItem --><!--banner end here --> <!-- content starts here --> <div id="container"> <cc1:CMSWebPartZone ID="zContent" runat="server" /> </div> <!-- content end here -->
Please check...
|
|
|
Kentico Consulting
|
kentico_borisp
-
12/6/2011 3:29:37 AM
RE:Regarding page templates
Hello, I would suggest you to read at first the following on the template system in general. If you make a change on a template, it is reflected on all the documents. If you want to create a similar page, with some changes, you need to clone it as an ad-hoc template. Best regards, Boris Pocatko
|
|
|
Member
|
sansugoi_sayounara-hotmail
-
12/6/2011 3:34:12 AM
RE:Regarding page templates
Thanks Boris.. I will try from start again.. One more thing in page template in sitemanger, what we write in webparts tab.... or can we leave it blank
|
|
|
Kentico Consulting
|
kentico_borisp
-
12/6/2011 3:49:42 AM
RE:Regarding page templates
Hello,
This dialog should be used only for emergency reasons. If you want to modify the web part settings, you should use the Design mode of the page. Please don't make any changes to the web parts tab.
Best regards, Boris Pocatko
|
|