Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Menu Behaviors

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hello. I am trying to accomplish the following tasks:

1.) I would like the main-menu on desktop to not show the caret-down when Show Sub-menu Items is set to No.

2.) When the main-menu is pushed to off canvas, I would like Show Sub-menu Items set to yes (would I need to set up a separate module for this?)

3.) I would like to include the open-panel link in the menu I've placed in position Top4 (see it here: napmdd.org/joom2/) so they all line up together.

4.) Lastly, I have another instance of main-menu in sidebar2 on select pages. This has the Module Class Suffix of accordion, Base Level is current, and Start Level is 2. I would like the panel for the currently active menu item to be open (as I have it set in the template configurations). This menu can be seen here: napmdd.org/joom2/for-patients/pmdd-and-the-workplace.

Thank you in advance!
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
Last Edit: 5 years 5 months ago by berlin80210.
The administrator has disabled public write access.
Hi

For 1 & 2 you would need a separate menu and give the module with no caret a module class name and target that

So that would leave the menu items set to yes to still display the carat
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With 3 you mean next to each other?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
For #3 - I do yes :-) So it looks as part of the menu.
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
Would you be so kind to provide me the menu css to hide the caret? I can't seem to locate it with chrome inspect. Thank you!
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
With the caret what page is it on?

As I can't seem to see it

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I've actually created two menus as you suggested. The main menu has no submenus (no caret) and I created another menu for the off-canvas position but the accordion effect now isn't working off-canvas. Gah!
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
Nevermind on #1 & #2 - I got it solved using a single menu and this css:

.zen-menu li.parent > a:before, .zen-menu li.parent > .zen-menu-heading:before, ul.zen-menu-child.cols-1 {
display:none;
}

Works perfect! Now I just need to solve #3 & #4 :-D
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
Hi

I had a look at 3 last night and another look this morning

The login is positioned using absolute positioning which means in this case its positioned in relation to the right side of the screen

.open-panel {
position: absolute;
top: 0px;
text-align: center;
right: 60px;
more styles....
}

So adjusting the right value to bring it closer to the menu is a problem as it depends on the users screen width.

e.g. on my screen it would be right: 700px; but for most users this would probably see login pushed way past the menu

So its not straight forward

I will check with the developers on this to see if they have a suggestion but it may be monday before I hear back
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I did look at this as a possible solution for you

www.nonumber.nl/extensions/modals#download

www.nonumber.nl/extensions/modals#open-menu-items-in-modals

I couldn't find a reference to loading a module but you could try loading an article with a module in it

Its not something I've used but may be worth a look

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
With the accordion - its set to

"Always open first item" ?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I have the following settings in Template Settings > Menu > Accordion

Enable Accordion = yes
Accordion Type = Accordion
Always open first item = no
Always show active menu item = yes
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
The extension works! Thank you!
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
Cool - I'll check regarding the accordion

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Just following up on the accordion issue. Thank you!
  • berlin80210's Avatar
  • berlin80210
  • 3 Month Basic
  • 52 posts
  • Karma: 0
The administrator has disabled public write access.
Very sorry for the delay on this issue - can you create a new thread specifically for this question

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The following user(s) said Thank You: berlin80210

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers