Can I have folders inside an autogenerated directory with each folder being just a page in the sidebar? #2207
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @darrenparkinson, you have two options here, or rather I guess two versions of the same option depending on the complexity of your project. I’d recommend switching away from full autogeneration to reference pages with slugs, so for example based on your content tree, this could look like: {
label: 'My Group of Things',
items: ['thing1/readme', 'thing2/readme'],
}, Internal link shorthand like this still loads all the metadata like page title etc. from the content files, but they are specified directly giving you full control of their nesting, order etc. Version two is kind of an update on this if you have a lot of instances of this and really do want to autogenerate rather than manually maintaining a list of all these. Instead of authoring the |
Beta Was this translation helpful? Give feedback.
Hi @darrenparkinson, you have two options here, or rather I guess two versions of the same option depending on the complexity of your project.
I’d recommend switching away from full autogeneration to reference pages with slugs, so for example based on your content tree, this could look like:
Internal link shorthand like this still loads all the metadata like page title etc. from the content files, but they are specified directly giving you full control of their nesting, order etc.
Version two is kind of an update on this if you have a lot of instances of this and really do want to autogenerate rather than…