Valdis, You're referring to this feature, right?
Hi Ashkan. I these kind of situation a ususllay create a scheduled job that takes care of the content migration. If everything works you only run the job once, and then remove it again.
In it's simplest form the scheduled job could loop through all pages of the affected page type and update those page. If your site has a lot of pages that approach might take too long though...
@bob and @Valdis,
Thanks guys for guidance. Unfortunatly I cannot use migration steps becase the property is a block type and in migration steps "The previous or new property type cannot be a block." :(
@Erik thanks for the response. I will try that :) thanks
Thanks Erik, that works fine :)
I have a change in my page/block type and I want to migrate the data in the old field to the new one. How to do it?
To elaborate more, before I had a ContentReference field on my page and now I found out that I need a list, but I cannot go and update every page in the production environment.
First I thought I might be able to do it using default values, but then I've remembered that those values will only update the field on page creation.
Then I thouht of my implementation of IInitializableModule, but how can I access all my pages from here? And is it even a valid approach?