Tom Chance
07/25/2023, 8:49 AMleekelleher
07/25/2023, 10:27 AMPackageMigrationPlan
) to do this, then it'd been handled on each baseline child instance standalone.
As for what would go in the migration step/state, (PackageMigrationBase
), e.g. the bit that would convert the property value data from your (old) Color Picker to (new) Contentment Data List format (typically a JSON string array) ... well, that's up to you. (I don't have any code examples to share for that. 😬 )
Although maybe someone else has on GitHub? e.g.
...and then the custom migration would need to re-publish those content pages/nodes that have been updated.Tom Chance
07/25/2023, 10:30 AMTom Chance
07/25/2023, 10:31 AMleekelleher
07/25/2023, 11:09 AMIContentService
from v7 (and I say this with a very vague recollection) was how save/publish worked. In v7 I recall it being on the Content/Node object itself, but with v8+ it was done on the service itself, e.g. _contentService.Save(content)
... at least I think that's the bit that kept catching me out back then. (but like I say, it's been a long while)Tom Chance
07/25/2023, 11:39 AMTom Chance
07/25/2023, 11:40 AM