You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I labeled this issue as RESEARCH because I don't know if what I want is possible. If it is, we'd need to see if the effort is worth it.
If a page is listed multiple places within the sidebar section of astro.config.mjs, clicking the page in the sidenav in one area will expand any other area the page is placed in. For example, if I put the Accounting page in the Concepts section and the Resources section, clicking the link to the page in Concepts will cause the Resources section to expand (and vice versa).
Describe the solution you'd like
Ideally, I'd like this not to happen. If I click the Accounting page in Concepts, the Resources section remains collapsed.
Describe alternatives you've considered
One alternative I've considered is making a partial out of the page I want to appear in multiple sections. It would look something like this:
Entry in Overview > Concepts section referencing accounting-concepts.mdx
Entry in Resources section referencing accounting-resources.mdx
I don't like this approach primarily because it now takes three files (in this example) to do the work of one file. It's also not a good practice to use partial files for entire pages of content. However, it IS a feasible workaround.
Additional context
Questions:
Is there a better solution?
If yes, is it worth the effort to implement?
The text was updated successfully, but these errors were encountered:
@melissahenderson The first thing I'd like to understand is why we need a page to appear in two different locations in the menu. Can we chat about that?
Is there an existing issue for this?
What type of enhancement are you suggesting?
Brand new component
Is your feature request related to a problem? Please describe.
I labeled this issue as RESEARCH because I don't know if what I want is possible. If it is, we'd need to see if the effort is worth it.
If a page is listed multiple places within the
sidebar
section ofastro.config.mjs
, clicking the page in the sidenav in one area will expand any other area the page is placed in. For example, if I put the Accounting page in the Concepts section and the Resources section, clicking the link to the page in Concepts will cause the Resources section to expand (and vice versa).Describe the solution you'd like
Ideally, I'd like this not to happen. If I click the Accounting page in Concepts, the Resources section remains collapsed.
Describe alternatives you've considered
One alternative I've considered is making a partial out of the page I want to appear in multiple sections. It would look something like this:
accounting.mdx
(file with all the content)accounting-concepts.mdx
(withaccounting.mdx
partial embedded within)accounting-resources.mdx
(withaccounting.mdx
partial embedded within)accounting-concepts.mdx
accounting-resources.mdx
I don't like this approach primarily because it now takes three files (in this example) to do the work of one file. It's also not a good practice to use partial files for entire pages of content. However, it IS a feasible workaround.
Additional context
Questions:
The text was updated successfully, but these errors were encountered: