Friday, September 8, 2017

Sitecore Practical Series-3 - Branch Template Implementation and key consideration.

Branch tempalte is basically a predefined collection of some items (every thing within a sitecore is an item).- though branch tempalte a collection of sub item can be dfined and whenever user will create a new items based on branch tempalte it will create the predefined collection.

Path:- /sitecore/templates/Branches



Create a new folder based on the project structure and information architecture



Theare are three options available to create withing branch tempalte.

1 - New branch - this will provide option to club existing tempalte and will provide a coolection of items and will be used as a single item.
2.  Command Template -  This template is different with branch tempalte and provide more flexibility, basically this tempalte will define a class and method and that will be called during insertion of item, this basically reference Sitecore UI command to invoke wizards or other custom logics
3.  Branch folder - basically this will allow to create a new folder and that folder itself will have insert option to again choose these three options.





Practical -

1. Create sample two tempalte into the root. One we have already created in the previous session.

I have created a new tempalte called - Chunk


Now, go to branch tempalte and create a new branch - Select Article as a main item.


this will look like this-

Now create a new folder withing article folder



Make sure this newly created folder comes under the &name(Article), details






Now to content section and choose this branch tempalte to create a items ( For this session purpose we are planning to use this branch tempalte directly thorugh browse, ideally it should come once you right click - for that we need to setup inseert option on standard tempalte.



Here is the result.

No comments:

Post a Comment