-
AuthorPosts
-
February 9, 2014 at 5:13 pm #194630
I’m trying to replicate a Protostar multilevel horizontal split menu using a single-row multi-column Megamenu.
The problem I have is that I can’t assign stacked position to the submenus to avoid that the ones of the left-sided items in a menu hide the right-sided items of the same level.
Moreover, I would like keep displayed the levels higher that the current one for orientation purposes.Any hints?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 10, 2014 at 2:31 am #521950do you need anything like the attached image ? If not provide us a screenshot how do you need the menu
February 10, 2014 at 2:54 am #521956The submenus in the image are ok, but I would like to have them left justified and permanent like in the first example.
And as far as the trigger, I would prefer the “hover” instead of the “click”.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 13, 2014 at 2:39 am #522463This is really a tough call and this come under customization. There is no provision like this in the template.
But, I have made some changes to the code and bought a similar solution. so Please check this and confirm.
http://www.numismaticcollection.com/coins.html
If this is what you want I will provide you the steps what i changed in the code.
1 user says Thank You to chavan for this useful post
February 13, 2014 at 3:02 am #522465Great job Chavan,
Exactly what i need, thank you!Please let know the steps to follow to reach such result, in order to start understanding how to customize the template.
(p.s.: it seems that Chome behaves in a different way compared to IE, Firefox and Opera)
Scott Lavelle FriendScott Lavelle
- Join date:
- November 2010
- Posts:
- 266
- Downloads:
- 16
- Uploads:
- 5
- Thanks:
- 6
- Thanked:
- 64 times in 27 posts
February 13, 2014 at 3:16 pm #522557This looks like it’s not really submenus under the main menu, instead a menus module that is loaded according to the page you are on, giving the impression that it is actually a submenu, but it’s a separate module.
So, for example, when you are on home, the 2nd and 3rd menus are not shown. When you are on the Roads page, the Norway / USA menu module shows, but only on that page. Then when you are on the USA page, the USA / Norway menu module is shown, as is the Route 66 / Red Rock menu.
Seems that for a small site, this would be ok, but it could get a bit unwieldy with a large site as to which pages to show certain menu modules on, especially if this information changes often.
In the case of the Coin example, it looks like it was all done with the megamenu with multiple levels of nesting, but I also see separate modules for the actual sub menus that are showing on the page nav-pills class at the ul level. I’m not sure what the submenus are doing in the example here, as when you hover them using something like Firebug, the submenus of the megamenu are not what’s highlighted as you hover the code, instead the separate modules in the code are what highlights the sub menus.
Just an outside observation on this. Of course, Chavan could explain the coins example better.
One way or the other, hope this helps in some way.
Scott Lavelle - Technical Resource Solutions, LLC
Certified Joomla AdministratorFebruary 13, 2014 at 7:10 pm #522586It’s exactly what I’m looking for…
I’m waiting for Chavan answer…
Thankschavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 14, 2014 at 5:54 am #522649These are the changes done on your site
1. I have made the submenus from the Megamenu invisible
2. Then i have added a Position Mainnav below Megamenu position using php code
3. Then I have Added a menu Module to that postition mainnav (Already there was some Modules added for the menus).
February 14, 2014 at 6:40 am #522652OK can you explain in detail with an example. As a tutorial. Please.
Thankschavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
February 15, 2014 at 2:19 am #522768I think this would be a good brief.
1. I have added this css to /templates/t3_bs3_blank/css/themes/dark/megamenu.css
.t3-navbar .nav-child {
display: none !important;}2. Go to this file /templates/t3_bs3_blank/tpls/blocks/mainnav.php
Find this code
<jdoc:include type=”<?php echo $this->getParam(‘navigation_type’, ‘megamenu’) ?>” name=”<?php echo $this->getParam(‘mm_type’, ‘mainmenu’) ?>” />Add the below code after the above
<jdoc:include type=”modules” name=”mainnav” style=”raw” />
3. Then I have Added a New Menus using Menu Manager
4. Added a Module suffix to the created Menu Module “clsnav”
5. Again go to this file: /templates/t3_bs3_blank/css/themes/dark/megamenu.css
Add this code
.t3-navbar .clsnav{ clear:both !important; border: none !important; } .t3-navbar .clsnav li{ float: left !important; } .t3-navbar .clsnav .active a, .t3-navbar .clsnav a:hover{ border-radius: 0 !important; background: #000 !important; }
February 15, 2014 at 12:12 pm #522808Wonderfull ! Thanks a lot !
AuthorPostsViewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 4 voices, and was last updated by ebrt 10 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Multilevel horizontal submenus
Viewing 11 posts - 1 through 11 (of 11 total)