Replies: 1 comment 3 replies
-
use the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I have a documentation site which uses just one hierarchical collection for both the topics (tree) and the help article itself (leaf).
The routes are in format of "help/{slug}".
I wish to display a breadcrumbs on both topic and article pages which should indicate the whole tree eg
Help > Topic > Subtopic > Article title.
I tried nav:breadcrumbs but it seems to rely on the route format and does not return the whole tree for me.
Then I tried to iterate through all the parents using "parent" but I need to detect the current level in the tree somehow.
Perhaps there is more elegant way to get the breadcrumbs or can anybody hint me about how to find the level of a node in collection tree.
Beta Was this translation helpful? Give feedback.
All reactions