Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I automatically create folder under a content item?

Looking at a scenario in which a content editor would create a new content item based off of a template. In other words if I create a content item based off of a car template, I would like to add a folder called 'Options' under the new car item.

As a content editor I could then add various options from the insert command on the folder.

Can this be done and if so how?

like image 216
mservais Avatar asked Feb 20 '23 06:02

mservais


1 Answers

This is a textbook description of a Sitecore Branch Template which can contain anything from a single item to a complex hierarchy of sub-items with their own set of standard-values and insert options. See chapter 3 of the Data Definition Cookbook for how to set these up.

like image 121
Derek Hunziker Avatar answered Mar 23 '23 01:03

Derek Hunziker