-
-
Notifications
You must be signed in to change notification settings - Fork 72
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
Data List - Preview of Umbraco Content data source with $ parameter #120
Comments
@bjarnef It will show a preview, but depends on the XPath expression used. If it's contextual, e.g. starts with one of the For explicit/absolute XPath expressions, it will show the preview. |
@leekelleher the XPath used is Some months ago a made this PR umbraco/Umbraco-CMS#10049 to Umbraco as I noticed using XPath in MNTP didn't worked well in media and member section because it didn't know about the current site/root node, but if only a single root node exists it could be enhanced a bit 😎 I guess it could do some extra check on if only a single content root node exists - otherwise it is okay just to leave empty preview. |
My code is piggy-backing on Umbraco's Alternatively, if you do only have a single root node (e.g. level 1), then you could amend the XPath to use |
Okay thanks for the explanation @leekelleher So not that important and if there is no easy way to make that work, it is just the way it is! 😅 |
Yeah, I did look at various ways to make the preview work with contextual XPaths, but it became one of those things were I'd be adding more code to fulfil an edge-case, so I parked it. I'll close off this ticket and add it to the Known Issues on the README. 👍 |
Added known issue about Data List preview for Umbraco Content XPath using `$` parameters. #120
Is your feature request related to a problem? Please describe.
When using Umbraco Content as data source is seems it doesn't show preview of the data like a custom data source.
Would it be possible to show a preview of this? It would be okay to limit the results if there are many nodes, but nice to visualize the Xpath query works 😁
The text was updated successfully, but these errors were encountered: