Sitecore 9 Migration Upgrade Dynamic Placeholder

Sitecore 9.0 comes with inbuilt dynamic placeholders, you don’t need to use any third party modules to add dynamic placeholders.

However if you have already used the module in the earlier version of Sitecore and upgrading it from Sitecore 8.0/8.1/8.2 to Sitecore 9.0 then you need to upgrade the Dynamic placeholder pattern.

Old Dynamic Placeholder Pattern

New Sitecore Dynamic Placeholder Pattern

You need to update all the dynamic placeholders renderings in the presentation details to new format else the renderings will not be shown on the pages.

There are multiple ways to upgrade the dynamic placehoder format. You can choose one of the below ways to update the dynamic placeholder format.

Powershell Script to update Dynamic Placeholder

With SPE we can recurse through the content tree and update the presentation details. So lets look at a script that we can use to do that:

Custom Code to loop through all the rendering in the page

The below code will loop through all the language versions and update the dynamic placeholder pattern to Sitecore compatible format.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.