I have the following question regarding Sitecore item creation:
Given the following content tree:
a.Value
--b(folder)
If I want to assign the a.Value to a child of b, so that the content tree will look like this:
a.Value
--b(folder)
--c.Value
What is the best way of doing this?
You can probably do this two ways (or even many more):
Create a command template with custom code to duplicate the
aitem below itsbchild folder. Section 4.1 of the Data Definition Cookbook (PDF link) will explain how to create them.Create an event handler for item creation with custom code to duplicate the
aitem below itsbchild folder whenais created. You can likely do this on theitem:savedoritem:createdevent. Refer to the Using Events page on the SDN for help.