javascript - How to change Liferay 6.2 site-navigation collapse behavior? -
that's it, default, liferay main navigation being collapsed dockbar, wich hidden not admin users in solution. tryed hooking dockbar , deleting collapse icon, site-navigation keeps hiding on window resize.
any ideas please?
p.d: saw post: - move collapsed menu button dockbar
where problem solved, mention there, think it's not "stylish" way of solving problem , it's give me more problems.
thanks reading.
on fly tell how solve toggle button in case of no dockbar presence.
on custom theme based on classic 1 have customize navigation.vm , insert code have hamburger icon close navigation.
(the code not tested)
<nav class="$nav_css_class navbar site-navigation" id="navigation" role="navigation"> <div class="navbar-inner"> #* start toogle hamburger menu *# <a class="visible-phone brand btn" data-toggle="collapse" data-target="#navigation"> <i class="icon-reorder"></i> #language ("main-menu") </a> #* end *# <div class="collapse nav-collapse"> <ul aria-label="#language ("site-pages")" class="nav nav-collapse" role="menubar"> #foreach ($nav_item in $nav_items) #set ($nav_item_attr_selected="") #set ($nav_item_attr_has_popup="") #set ($nav_item_caret="") #set ($nav_item_css_class="lfr-nav-item") #set ($nav_item_link_css_class="") #*continue...*#
Comments
Post a Comment