Nested menus are not implemented in bootstrap 3.
What you could do is add this piece of code to your layout.html
< style>
.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0
6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px
6px;}
.dropdown-submenu:hover>.dropdown-menu{display:block;}
.dropdown-submenu>a:after{display:block;content:"
";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px
0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px
0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px
6px;}
< /style>
as sugested by *HarryR7 <https://github.com/HarryR7> *web2py github issues
<https://github.com/web2py/web2py/issues/938>
Em domingo, 26 de abril de 2015 08:18:53 UTC-3, 黄祥 escreveu:
>
> hi,
>
> i realize that web2py sub sub menu in newest version is not work as
> expected (no error occured but the result is not expected).
> *models/menu.py*
> response.menu = [
> (T('Menu'), False, URL('default', 'index'), [
> (T('Sub Menu 1'), False, URL('default', 'index'), [
> (T('Sub Menu 2'), False, URL('default', 'index'), []),
> ]),
> ]),
> ]
>
> *result in html browser*
> <ul class="dropdown-menu">
> <li class="dropdown-submenu">
> <a href="/test/default/index">Sub Menu 1</a>
> <ul class="dropdown-menu">
> <li>
> <a href="/test/default/index">Sub Menu 2</a>
> </li>
> </ul>
> </li>
> </ul>
>
> how can i have the sub sub menu in web2py newest version? the previous
> version (bootstrap 2) is worked as expected
>
> thanks and best regards,
> stifan
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.