Joomla - Displaying Submenu OF all pages ON all pages - html

I have a problem using Joomla 2.5.
I'm displaying my navigation on a different way than usual. My mainMenu and subMenu are positioned separated from each other. (Required by the jQuery animation I've implemented)
There is a need to retain the menuStructure therefor i've created the following menu:
(in this example I only give the first 2 mainMenuItems a subMenu)
mainMenuItem #1 {Alias of subMenuHead #1}
mainMenuItem #2 {Alias of subMenuHead #2}
mainMenuItem #3
mainMenuItem #4
The Submenu's:
in the settings, only the first level of Children are displayed!
subMenuHead #1
subMenuItem #1.1
subMenuItem #1.2
subMenuHead #2
subMenuItem #2.1
subMenuItem #2.2
My Problem?
The subMenus are only being displayed if the user is on the Parent-page or the actual page it self. Even when set they should display on all pages.
So for example: When I navigate to mainMenuItem #3 I am unable to see any subMenus.When I navigate to subMenuItem #1.2 I only see the subMenu of mainMenuItem #1.
When I navigate to subMenuItem #2.1 I only see the subMenu of mainMenuItem #2.
What I want:
All subMenus being displayed, on all pages (Menu Assignment is set like so).
Don't understand? Maybe the direct link may help :) (Dutch-text): http://www.notabilisweb.nl/tenc2012/
Thanks in advance!

I'm assuming that you are using the default Joomla menu module. In the module you are using to display the submenu, you should make sure that the "Show Sub-menu Items" setting is set to Yes.

Related

Angular mouseover and leave not working MAT-MENU

I have a mat-sidenav and a list of mat-item and mat-menu. Then when I hover over of one of the items I want the menu to display. This part is working. But then when I move off of that menu or item and over a new item I want its menu to display.
https://stackblitz.com/edit/angular-xsscrm
I have included a stackblitz with a demo of the behavior.
What is wrong here I have both on enter and exit, but then when I leave a menu on to a new one, it doesnt open unless I click on it.
Thanks for the help
The issue here is that when a menu opens, it creates an overlay with a backdrop that overlaps all elements. This backdrop is causing the mouse events to not be 'seen' by the listening element until the overlay is dismissed via a mouse click. Luckily, the menu control has a flag to remove the backdrop; setting this to false fixes the issue you're seeing.
Side note: you have an *ngFor on the <mat-list> element, but I think you want to move it to the <mat-list-item> element instead because you want many list items, not many lists. Since you're using the local variable of *ngFor outside of the <mat-list-item>, you can create an <ng-container> element to house your *ngFor. See below stackblitz:
https://stackblitz.com/edit/angular-xsscrm-kx6jyd
Another side note: this behavior is similar to a tooltip. Perhaps that would be a better control for your use-case? https://material.angular.io/components/tooltip/overview

Primefaces SlideMenu- change initial state

We are using SlideMenu from primefaces (v3.5). Let's say there is a main menu and 2 sub menus. Is it possible to change the default view of the SlideMenu so that I see the 1st submenu always. Could someone help me on this?

Wordpress menu and anchor links

I'm having an issue with anchor links in my menu.
Here is a quick example of the issue I'm having:
The 2 Anchor Links:
<div id="anchor1"></div>
<div id="anchor2"></div>
The Menu:
Menu Item One (http://test.com/m1)
-Sub Menu Item One (/m1/#anchor1)
-Sub Menu Item Two (#anchor2)
Essentially Sub Menu Item One will bring me to the right place but it always re loads the page if I'm currently on it.
Sub Menu Item Two works perfectly if I'm on the page but does not work if I'm on another page.
So what I need is for the link to take me to the anchor location without refreshing the page if I'm currently on it and to take me to the anchor location if I'm on a different page.
Any ideas?
Did you use full path in href on Sub Menu Item One? Add full path with the anchor in the end and it should work like you hoped.

Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it's submenu ul

I'd appreciate some direction on how to accomplish something with my WordPress menu. I've Googled this for hours without avail. I was to automatically insert a parent link into it's immediate submenu ul. For example, normal output is this:
Parent Menu Item 1
Parent Menu Item 2
--Submenu Item 1
--Submenu Item 2
Parent Menu Item 3
I'm looking for this:
Parent Menu Item 1
Parent Menu Item 2
--Parent Menu Item 2
--Submenu Item 1
--Submenu Item 2
Parent Menu Item 3
I don't think wp_nav_menu() has a setting for this. Rewriting the entire menu rendering function would likely be very arduous.
One workaround would be to have "Parent Menu Item 2" as an actual first child page underneath the parent page of "Parent Menu Item 2", and use the code in this SO question:
wordpress: click on Parentpage Redirect on first child page programmaticaly
to automatically redirect to it. That would, however, change the behaviour on all pages: if you open a page that has children, you will always be automatically redirected to the first child.

How to implement CSS multi-level drop down menu with different classes?

I'm attempting to implement a multi-level drop-down navigation menu in CSS only but there's one small part which I just can't seem to get working correctly.
What should happen is:
1) When hovering over a menu item, it should be highlighted by using a different image (this works fine).
2) When hovering over a sub-menu item, the parent menu item should be highlighted.
Point 2 works fine up until I have a class .bottom on the parent menu item (this class is used as the image is slightly different). If the parent menu item has class .bottom, the highlight simply doesn't happen.
A demo of this can be viewed here: http://jsfiddle.net/cZFtW/2/
The demo shows that when hovering over Menu 1 > Sub Menu 3 > Sub Sub Menu X, Sub Menu 3 is highlighted. However, when hovering over Menu 2 > Sub Menu 3 > Sub Sub Menu X there is no highlight.
Can anyone see what I'm missing? On a side note, there's no real reason for not using Javascript here, I'd just prefer to have it all handled by CSS if possible (only need to support IE7+).
TL;DR; version: this fiddle shows the answer.
I understand what you mean. And I am pretty sure that the styling to which you need an answer to, which works for all except for the one at the bottom, has arisen purely by accident. (Kind a nice one I must say). I am almost certain of this, because your code as well as the file names lack any form of consistancy. There is double code, there is superfluous code, and there are images missing.
Therefore I have rewritten your markup and style sheet, and came to the fiddle as mentioned above.
Now, how does it work?
The trick is to attach the background image to an element inside the list item. In this case I chose for an anchor element, since that is most the likely. The first step is to change the background image at hovering the anchor, that's basic.
The second step is to change the background again when you hover over the submenu. At that point, the anchor element isn't hovered any more, but the list item is. So you can still change the background of the anchor element.
Note: in my solution there is a small difference to what you wish: when you hover the arrow, the background if the list item is already changed instead of until the cursor is over the submenu. If you want to prevent that, then you have to add an extra element for every sub menu like you had done yourself. But I think this is pretty nice also.