Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: example for cascading sidebar menu reusing existing menus #970

Open
Anagastes opened this issue Dec 11, 2024 · 2 comments
Open

docs: example for cascading sidebar menu reusing existing menus #970

Anagastes opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation
Milestone

Comments

@Anagastes
Copy link

Hi, I currently have the problem of having two separate areas using the cascading function.

https://mcshelby.github.io/hugo-theme-relearn/configuration/sidebar/menus/index.html#redefining-sidebar-menus-for-certain-pages

However, the “more” area in the sidemenu then disappears.

grafik

It could also be that I am really too stupid to understand the system.

Is there a way to cascade the “more” area?

@McShelby
Copy link
Owner

McShelby commented Dec 11, 2024

Please post a link to your project sources. This is the quickest way to help you.

Without seeing your pages frontmatter: If you overwrite the sidebarmenus config in your front matter, this resets the whole sidebar menu configuration. You have to redefine everything. So if if more is missing, add an additional entry to your front matter:

    [[cascade.params.sidebarmenus]]
      identifier = 'shortcuts'
      type = 'menu'

I'll add this to the docs.

@McShelby McShelby self-assigned this Dec 11, 2024
@McShelby McShelby added the documentation Improvements or additions to documentation label Dec 11, 2024
@McShelby McShelby added this to the 7.2.2 milestone Dec 11, 2024
@McShelby McShelby changed the title Allow cascading shortcuts docs: example for cascading sidebar menu reusing existing menus Dec 11, 2024
@Anagastes
Copy link
Author

Please post a link to your project sources. This is the quickest way to help you.

Without seeing your pages frontmatter: If you overwrite the sidebarmenus config in your front matter, this resets the whole sidebar menu configuration. You have to redefine everything. So if if more is missing, add an additional entry to your front matter:

    [[cascade.params.sidebarmenus]]
      identifier = 'shortcuts'
      type = 'menu'

I'll add this to the docs.

Your right. Now it works. Perfect! :D

And yeah, should be in your doc's. Now I understand this better! :)

+++
title = 'Blog'
weight = 100
[_build]
  render = 'never'
[[cascade]]
  [cascade.params]
    [[cascade.params.sidebarmenus]]
      identifier = 'blog'
      pageRef = '/blog'
      type = 'page'
    [[cascade.params.sidebarmenus]]
      identifier = 'shortcuts'
      type = 'menu'
+++

@McShelby McShelby reopened this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants