Helpful-Libraries
Helpful-Libraries copied to clipboard
Make it possible to replace content items with an unknown ID using recipes (OSOE-648)
Currently it's not possible to overwrite a content item with a recipe if its ContentItemId is unknown - for example if it was created from a recipe using "ContentItemId": "[js: uuid()]"
. We should include some recipe mechanism to get around this. Some ideas:
- Add a
IGlobalMethodProvider
that let's you find the ContentItemId from alias, e.g."ContentItemId": "[js: idFromAlias('main-menu')]"
. - Create a new recipe step that removes a content item by query.
I'm not sure if either of these is possible during setup, if the alias index may not be populated yet?