开发者

How do I use a Branch Template in Sitecore?

开发者 https://www.devze.com 2023-03-12 13:46 出处:网络
I have a \"Default Template\" consisting of a bunch of sublayouts, most importantly the \"ContactForm\" sublayout. I want to create a B开发者_开发技巧ranch Template of the Default Template so that I c

I have a "Default Template" consisting of a bunch of sublayouts, most importantly the "ContactForm" sublayout. I want to create a B开发者_开发技巧ranch Template of the Default Template so that I can change the ContactForm sublayout to a "PressForm" sublayout. What I'm struggling with is exactly how I should do this.

At the moment I have gone into my Branches folder and created a new Branch Template and use my Default Template; I've named it Default Template Branch. I now have an item underneath it called $name which states that it is a Default Template. I can edit this to change the ContactForm sublayout to "PressForm".

Where do I go from here to get the desired result?


$name is the item instance that you'd want to edit. you should make a Contact branch and a separate Press branch. Then edit each $name below according to your changes (e.g. different presentation)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号