Note that there are some explanatory texts on larger screens.

plurals
  1. POIn Sitecore, how to create a new item based on an existing item
    text
    copied!<p>I am new to Sitecore.</p> <p>In Sitecore I need to enable users to create new items based on existing items. I am envisioning something like this:</p> <ol> <li>the user clicks "insert" in the context menu</li> <li>the user is prompted for another item somewhere in the tree (it must be based on a specific template)</li> <li>A new item is created with some fields pre-populated with the values from the original item</li> <li>The user can now fill out other fields which are not pre-filled - or change the pre-populated values</li> </ol> <p>(notice that the new item is based on another template than the original). I do not have worry about changes to the original item - they do not need to be propagated to the new item.</p> <p>As a beginner I don't know how to do this. I have looked at various options:</p> <p>a. Clones. Clones seemed to be close to what I want, but I can't have extra fields on the new item, and they can't be based on different templates. So I guess its not really a clone I am after. (also, they are pretty new to Sitecore)</p> <p>b. events. I think I should be able to intercept the "new item" event, but I have no idea how I would then throw up a dialogbox and ask the user to select an original item.</p> <p>c. Reference to original item. I have figured out how to create a field that can contain a reference to the original item. However, how do I populate fields when the user sets it - and how can I make sure the user starts with this field before doing anything else?</p> <p>I have also looked into commands, hooks and more ...</p> <p>So? Any ideas?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload