I know in sitecore 6.5, you can Assign (through Configure tab) specific Templates that the user can use when inserting new items, but how do you do that in code?
I am creating regular folders in code, and I would like to assign specific templates to each created folder, but I am not seeing any “Assign”,”Configure” options for the “Item” class. Is there a way to do this?
You are referring to the Insert Options of an item. That is stored on the item itself in the system field __Masters which is displayed as
Insert Optionsif you check theStandard Fieldscheckbox on theViewribbon.In that field you can add the template ID’s of the templates you want allowed for insert (pipe separated if you have multiple ID’s).