Dynamic root cannot start at root content? #15704
Replies: 3 comments 6 replies
-
Sounds like a okay idea, but for the specific use case, what are the problems with choosing the settings node by key? The key id not the Id, so it will be the same on all environments. |
Beta Was this translation helpful? Give feedback.
-
Hi again, with the xpath method now being removed in 14, I think this is still relevant. I have some sites that that I look after that are not on cloud, and just push schema changes between environments using usync. Since the content is constructed in parallel they keys are not stable. If there was a dynamic root that could start above the content noes this would solve all the problems -1, type:settingsNode -> use dynamic root with zero issues from here. -1, type:homepageNode -> use dynamic root with zero issues from here too. Dynamic root is a really good solution but I feel like I am banging my head against a wall with the way I am using it. Am I just doing it wrong, or should I expect that setting up my site with some root nodes being used to hold shared content should work gracefully. |
Beta Was this translation helpful? Give feedback.
-
I agree, I just started migrating our xpath pickers to dynamic roots, and indeed we use a lot references across roots. And the comment of umbraco deploy is not relevant for us, since we do not use it. |
Beta Was this translation helpful? Give feedback.
-
I have a site where a settings node is outside of the site root, and there is no way to select it using the new dynamic root except picking it by key.
As an interim solution I have built a query step that gets the pages at root, but it seems like this is an origin, as it step it just discards whatever else precedes it.
An origin of "Root content" which returns the same as _contentService.GetRootContent() would be a reasonably useful kind for websites that have multiple root content nodes I think?
Beta Was this translation helpful? Give feedback.
All reactions