Created
August 3, 2020 06:47
-
-
Save piotrpog/5c34d9de9b167dc2edca52ea2db7efdb to your computer and use it in GitHub Desktop.
Craft CMS Verbb Navigation - URL stucture based on menu structure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{ craft.navigation.nodes().ancestorOf( craft.navigation.nodes('test').all()|filter(x => x.element.id == id)|first.id ).ancestorDist(1).one().element.uri ?? null }}/{{slug}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment