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

Proposal for extension for Bootstrap Navigation RT to get a Multilevel Menu #247

Closed
uwe367 opened this issue Aug 17, 2018 · 2 comments
Closed

Comments

@uwe367
Copy link

uwe367 commented Aug 17, 2018

Is it possilble to enhance the Bootstrap Navigation RT, f.e {NAV_LIST_UL:PB....} with a dropdown submenu to create a Mulitlevel Menu like in this example? It´s full responsive and, most of all, touch-friendly.
Bootstrap Multilevel Menu
The reason why is that the current RT doesn´t support it or am i wrong? I don´t know where to add the class dropdown-submenu
So it would be very nice if this were built in.

@slackero
Copy link
Owner

It should be possible using the classes defined here:

    'navlist-sub_ul_true'           => 'dropdown-submenu',
    'navlist-sub_ul'                => 'sub_ul',
    'navlist-sub_no'                => 'sub_no',
    'navlist-sub_first'             => 'sub_first',
    'navlist-sub_last'              => 'sub_last',
    'navlist-sub_parent'            => 'sub_parent',
    'navlist-asub_no'               => 'asub_no',
    'navlist-asub_first'            => 'asub_first',
    'navlist-asub_last'             => 'asub_last',
    'navlist-link-class'            => 'nav-link',
    'navlist-navLevel'              => 'nav-level-',
    'navlist-bs-dropdown'           => 'dropdown',
    'navlist-bs-dropdown-toggle'    => 'dropdown-toggle',

@uwe367
Copy link
Author

uwe367 commented Aug 19, 2018

Sorry, but it doesn´t work. It doesn´t matter wich definded class i use for dropdon-submenu, theres no chance to get a Multilevel Menu. Have a look into front.func.inc.php around line 3113.
if($bootstrap) { $li_class = trim($GLOBALS['template_default']['classes']['navlist-bs-dropdown'].' '.$li_class); $bs_toggle = true;
and around line 3130.
if($bs_toggle) { $li_a_class = trim($GLOBALS['template_default']['classes']['navlist-bs-dropdown-toggle'].' '.$li_a_class); $bs_data_toggle = ' '.$GLOBALS['template_default']['attributes']['navlist-bs-dropdown-data']; $bs_caret = $GLOBALS['template_default']['attributes']['navlist-bs-dropdown-caret'];
I think it must be added there if you want to use the RT {NAV_LIST_UL:PB....}
Or do you have a working example for better understanding?

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

2 participants