4

I'm VERY new to Sitecore so forgive me, if this question doesn't make any sense.

I've added an insert option to the __StandardValues of a template. I expect the content using this template to have the this new insert option but it doesn't.

Is there another step to this?

or do changes to templates not affect those content that have already been created using the template...

  • You cannot see templates in insert options as admin or regular content editors? – Peter Procházka Nov 26 '18 at 12:44
  • I'm logged in as admin – Percy Nov 26 '18 at 12:44
  • If you create a new item from this template, does it have the right insert options? – Dan Sinclair Nov 26 '18 at 12:55
4

This is a normal behavior.

You need to reset the insert options of the item to see the changes on standard values,if you create items based on a template and then you add to the standardvalues of template new insert options.

Please have a look on below picture. You need to press Reset button from Insert Options section.

If you create new items based on the template you will see the changes from Standard Value.

enter image description here

If you want to reset InsertOptions of an item you can do it programatically using:

  1. C# Code:

    item.Fields["__Masters"].Reset();

  2. Using Powershell Extension :

    Example: Get-Item "master:/sitecore/content/home" | Reset-ItemField -IncludeStandardFields -Name "__Masters"

  • Will that apply the change to all items, or will I need to do this manually to each item using the changed template? – Percy Nov 26 '18 at 12:49
  • it will apply just to the current item – Vlad Iobagiu Nov 26 '18 at 12:51
  • So if I already had 1000 pages using that template, and I change the insert options, I would have to go through 1000 pages and hit the "Reset Templates" button one by one? – Percy Nov 26 '18 at 12:53
  • 1
    Use Sitecore Powershell extension. – Vlad Iobagiu Nov 26 '18 at 12:53
  • Ok - I don't have 1000 pages but was just wondering. thanks – Percy Nov 26 '18 at 12:54
1

Reset Insert Options field to standard values

If the Insert options field of the item was previously edited, it will have its own value instead of taking its value from the __Standard Values item for that template. (This is true even if you updated the item's value back to what was stored in the __Standard Values item).

To remove the item-specific value and fall back to the standard value, you can use the Reset button:

  1. In the Content Editor, under the View ribbon tab, check the Standard fields checkbox to show standard fields, of which the Insert options field (technically called __Masters) is one.
  2. In the Versions ribbon tab, click the Reset button:

    Reset Field Values dialog

  3. Check the box next to the Insert options field and click the Reset button.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.