-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Find a way to display contained content items #2688
Comments
The Autoroute part could have some logic to navigate the Json document to the root, and each time the parent also has an autoroute it would append it to the final route and add a special routedictionary controller on how to find the correct node (main content item id + json path to inner one). Ultimately any contained content item would be routable if it had an autoroute part. The editor would also be clever enough to show the base prefix leading to it. |
I managed to get it to work with Taxonomies on the sebros/routable branch. It's not super neat, as I didn't want to break the Autoroute part, but some concepts are overlapping between Routable and Autoroute. It's still work in progress, and we might need to break Autoroute to get a better implementation. |
What was the progress on this one? |
For taxonomies, a generic solution would be to create an action that takes a taxonomy id in one of the url segments, like /taxonomies/4abcdefgh123/colors/blue |
I quite liked the concept in sebros/routable but I think it could integrate with autoroute (without breaking) The challenge would be to call the autoroute handler when adding / creating bag items and taxonomy terms. Possibly a Advantages are you'd also get publishing dates, and other metadata which is missing (and slightly annoying sometimes when you want it) on contained content items. |
How to route taxonomies: Razor Page For term /taxonomy/{id}/{termid}/{*text} For taxonomy
For terms (taxonomies/{taxAlias}/{*termAliases} "Science & Technology" |
Generic way to route bag part items, or taxonomy terms.
Might be resolved with custom routing templates, with a generic routes handling bag parts, and another one handling taxonomy terms.
Example:
Landing Page has an autoroute, let's say
/foo/bar
. The autoroute part would register this route. But the BagPart module could also register a route like/foo/bar/projects/{project_slug}
The text was updated successfully, but these errors were encountered: