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

Navigation does not render correctly when using level: 2 #5

Open
Flauschbaellchen opened this issue Jan 28, 2018 · 0 comments
Open

Comments

@Flauschbaellchen
Copy link

Flauschbaellchen commented Jan 28, 2018

I'm splitting my navigation into two seperate divs. One at the top and one as a sidebar.
simple-navigation provides a :level setting to archive this functionality (docs)

Using the Bootstrap3 renderer, the second menu is hidden (display: none;) as it is rendered like a dropdown menu.

View:

= render_navigation expand_all: true, level: 2

Navigation settings:

navigation.renderer = SimpleNavigationBootstrap::Bootstrap3
navigation.items do |primary|
    primary.item :main, 'Main', main_url do |sub_nav|
      sub_nav.item :sub, 'Sub', sub_url
    end
end

Level 2 should be rendered like level 1, level 3 like level 2 and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant