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

How to access the path of a container in autoroute? #15124

Closed
ggkoning opened this issue Jan 19, 2024 · 1 comment
Closed

How to access the path of a container in autoroute? #15124

ggkoning opened this issue Jan 19, 2024 · 1 comment

Comments

@ggkoning
Copy link
Contributor

I have made nested pages using list part and I am trying to get relative paths to work with autoroute. Currently I am using the display text of the container item but that could differ from the path. What is the correct syntax to get the path of the container?

Example of how I get the display text in a autoroute part {{ Model.ContentItem | container | display_text | slugify }}

@ggkoning
Copy link
Contributor Author

Or could contained item routing be made to work with list parts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant