I'm trying to migrate a Sitecore page to use a new template with new presentation details in it's Standard values. This template inherits from the currently used template.

When I change the page to use the new template, I expect that it would now use the presentation of the new template's Standard values. However it seems to always keep the presentation details of the original template.

Why would this be happening?

  • Which Sitecore version you are on? Apart from Standard values do you have any more differences in new/old template which are not carried over ? Feb 6 '18 at 22:26
  • 1
    Is the item still using the standard values of the old template or has it been modified, i.e. have you added any additional renderings to the item?
    – jammykam
    Feb 6 '18 at 22:26
  • I created std values on the new template that update the presentation. This new presentation is not being applied upon changing to the new template. Even after resetting the layout (to reset any user overrides)
    – DEX
    Feb 7 '18 at 3:18

Whenever you make a change to a field on an item, the link between that item and its Standard Value is effectively broken. Since the Renderings and Final Renderings field which are used for Shared/Final Layout are just regular Sitecore fields, the same applies to the Presentation Details which you set on the Standard Values, i.e. if you have made a change to the item by adding/removing renderings (for example) then you have broken the link.

In order to restore the link back to the Standard Values you can Reset the layout fields. Be sure to select the Renderings and/or Final Renderings fields as needed.

Word of warning, it will reset the layout and remove any additional Renderings that may have been added by you users. If you need them on the page, you will need to add them back in.

From the Experience Editor:

Reset Layout in Experience Editor

From the Content Editor:

Reset Layout in Content Editor

You could also write a PowerShell script to Reset-Layout of items if you have a lot of items.

  • I tried resetting the layout, then changing the template again. I only ever get the presentation from the original (base) template.
    – DEX
    Feb 7 '18 at 3:13
  • If you have it installed you can also try using Sitecore Rocks. You can select one or more items and under Tasks there is a reset layout option.
    – RReilley
    Feb 7 '18 at 3:17
  • @RReilley I don't see how to do this in sitecore rocks. I'm running 2.1.86. This post shows how to do it but I don't see the Layouts item in the menu. Also not sure why this would work in rocks but not in the content editor . 2.1.86
    – DEX
    Feb 7 '18 at 17:38
  • When you did you connection for your site in Sitecore Rocks did you install the Hard Rock Web Service?
    – RReilley
    Feb 8 '18 at 18:29

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.