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 existingtempalte and will provide a coolection of items and will be used as a single item.
2. Command Template - This template is different with branchtempalte 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 haveinsert option to again choose these three options.
Practical -
1. Create sample twotempalte into the root. One we have already created in the previous session.
I have created a newtempalte called - Chunk
Now, go to branchtempalte and create a new branch - Select Article as a main item.
this will look like this-
Now create a new folderwithing article folder
Make sure this newly created folder comes under the &name( Article), details
Now to content section and choose this branchtempalte 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.
Path
Create a new folder based on the project structure and information architecture
1 - New branch - this will provide option to club existing
2. Command Template - This template is different with branch
3. Branch folder - basically this will allow to create a new folder and that folder itself will have
Practical
1. Create sample two
I have created a new
Now, go to branch
Now create a new folder
Make sure this newly created folder comes under the &name
Now to content section and choose this branch
Here is the result.
No comments:
Post a Comment