Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to replace content items with an unknown ID using recipes (OSOE-648) #199

Closed
sarahelsaig opened this issue Jun 18, 2023 · 3 comments

Comments

@sarahelsaig
Copy link
Member

sarahelsaig commented Jun 18, 2023

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:

  1. Add a IGlobalMethodProvider that let's you find the ContentItemId from alias, e.g.
    "ContentItemId": "[js: idFromAlias('main-menu')]".
  2. 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?

Jira issue

@github-actions github-actions bot changed the title Make it possible to replace content items with an unknown ID using recipes Make it possible to replace content items with an unknown ID using recipes (OSOE-648) Jun 18, 2023
@Piedone
Copy link
Member

Piedone commented Jun 18, 2023

TestAddingMenuItemToBlogMainMenuAsync() in Base Theme would benefit from this.

@Piedone
Copy link
Member

Piedone commented Oct 26, 2023

Shouldn't this rather be an OC issue?

@Piedone
Copy link
Member

Piedone commented May 16, 2024

Moved to OrchardCMS/OrchardCore#16070.

@Piedone Piedone closed this as not planned Won't fix, can't repro, duplicate, stale May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants