Happy path to directory listings? [V3] #3185
Unanswered
frank-laemmer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking at
queryCollectionNavigation
here:https://content.nuxt.com/docs/utils/query-collection-navigation
If I understand correctly, it always dumps the whole navigation?
Now, my project does not have a permanent side bar navigation like with the documentation of Nuxt Content itself. It has a breadcrumb like this:
Docs > Platform > Billing
. Each of those items represents a folder in the markdown structure:So when clicking on the billing headline, I'd ideally like to show a directory listing of only the items in that directory.
Mapped to the Nuxt Content Docs this means that this page:
https://content.nuxt.com/docs/utils/
would actually show the contents of that folder instead of redirecting.
So far I manually strip down the navigation to the current route (via Vue). But that code doesn't look not nice and feels unnecessarily complex for something that looks like a very common use case to me. So maybe I am missing the correct way to do it?
Beta Was this translation helpful? Give feedback.
All reactions