Clone Template

Jan 14, 2016 at 4:42 PM
I'm need to create about 12 templates for a content type. Is there a way to create a new template based off of an existing template? For the templates that I need to create they are going to be structured the same, I just need to change a CSS class.
Jan 14, 2016 at 4:52 PM
If you use razor you can create a main-template - and various wrapper templates which only contains the customizations and then renders the inner template.

Fairly simple.

Alternately you do it all with one template, and let the user "change" the behaviour/css include based on a drop-down in the presentation-settings.
Jan 14, 2016 at 4:56 PM
Thanks, I decided to use the Presentation Setting but in 8.0.12 when I use @Presentation.SectionStyle it showing Default|SectionStyles0 It should only be showing SectionStyles0 as that's the value. Is there something else I'm missing?
Jan 14, 2016 at 5:37 PM
Figured it out. Values are separated by a ":" not a "|". It pays to read the help icons :)