Modifications of mod_menu - Joomla! Forum - community, help and support


hi,
i modified menu.
i copied file default.php modules/mod_menu templates/xxxxxxx/html/mod_menu
i changed code:

code: select all

// next item deeper.
   if ($item->deeper) {
      echo '<ul class="nav-child unstyled small">';
   }
   // next item shallower.
   elseif ($item->shallower) {
      echo '</li>';
      echo str_repeat('</ul></li>', $item->level_diff);

i replaced code

code: select all

   // next item deeper.
   if ($item->deeper) {
      echo '<div class="sub" style="visibility:hidden"><span class="grad"><span class="lines"><div><ul>';
   }
   // next item shallower.
   elseif ($item->shallower) {
      echo '</li>';
      echo str_repeat('</ul></div></span></span></div></li>', $item->level_diff);

i added styles , have nice dropdown menu.

but i'd modify submenu more. should not in 1 column in 4 columns.
i think should add foreach {} how o make don't know.

so, have

menu item 1 | menu item 2 | menu item 3
-----------
submenu item1
submenu item2
submenu item3
submenu item4
submenu item5
submenu item6
submenu item7
submenu item8

i want have this:
menu item 1 | menu item 2 | menu item 3
-------------------------------------------------------
submenu item1 | submenu item3 | submenu item5 | submenu item7
submenu item2 | submenu item4 | submenu item6 | submenu item8

please, me, should add , where.






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support