Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Sitecore: How to copy template sections

Modified: 2011/08/12 10:28 by jim - Categorized as: Sitecore
Ordinairy Copy - Paste of Sitecore template sections from one template to another does not work properly. Here's how to do it the right way:

Right Click the Section in the Tree part of the Template Editor. Select Duplicate. No need to rename, that will be done later. Click OK. The duplicated section will be placed above the section you used. Right Click the Copy of (duplicated) section and Paste in the target template. Rename the section, and bob's your uncle.

This is a quick and dirty way to reuse a part of a template, when refactoring your templates to use inheritance is too much of a hassle.

Dont forget to publish the target template.

 © Evident Interactive BV