Dynamic content reflecting within sidebar menu #34
Unanswered
GuiltyRemnant
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
first: awesome project, it was very easy for me to set it up and playing around.
I want to build a simple board within the template, in next.js config i am saying i want a path like /discussion/detail/:id targeting the mdx in folder /pages/discussion/detail.mdx and in the mdx for discussion i have something like <LINK href={
/discussion/detail/${data.id}
}>, linking in to the relevant detail page.Cool - now i wanted the menu on the left side being active, when i am on the detail page - like the detail page is visually part of the discussion area. For now, the discussion link is getting grey, when i am on a detail page.
I asked chatGPT and it said, i could do something in the _meta.json of the /discussion/detail/ like "parent": "discussion" - but i think, he haluzinated this answer, because i only found some options for "children". So, these ideas didnt work out for me. Is there a solution i am not seeing? Or do i have to set the discussion link as active myself, when i am on the detail page?
Beta Was this translation helpful? Give feedback.
All reactions