Cloning and modifying a page template

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

You may need to create a new page that will be similar to existing pages, but with some minor modification of the page template. Imagine you want to display the editable region from the previously created page template in a container box.

 

Instead of creating the page template from scratch, simply create a new page based on your existing page template.

 

devguide_clip0260

 

Then choose the page, click Properties -> Template, click Clone as ad-hoc template and click Save. A new ad-hoc template is now created and you can edit it without modifying the existing pages based on the original template:

 

devguide_clip0261

 

Now switch to the Design tab and click the Configure (Configure) button of the Editable text web part. Select the Black box container from the Web part container drop-down list and enter What's new into the Web part container title field:

 

devguide_clip0262

 

Click OK. Switch to the Page tab and enter some text into the editable region. Click Save and click Live site in the main toolbar. You will see a page like this:

 

devguide_clip0263

 

As you can see, the text is now surrounded by a black container. When you check the original My test page, you will see it uses the original design and it wasn't affected by the change we made to our new copy of the page template.

 

 

 

Re-using the adjusted template again

 

If you want to re-use the new, adjusted page template, you can click the Save as new template button in the Properties -> Template dialog as you did previously.

 

 

 

 

Important!

 

Please keep in mind that when you create a page based on an ad-hoc page template and later delete the page, the corresponding ad-hoc page template is deleted as well and cannot be restored.

 

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?cloning_and_modifying_a_page_template.htm