Auto- Nav and reponsive template issues

Permalink
Hi Team

Havign a bit of an issue with the nav block and the reponsive auto nav template. If any one can help.

I have one globle area
$an = new GlobalArea('Header Navigation');

Which repeats on the standard Nav under the banner. And the second on a hidden menu which appears when u scroll passed the 1st down the page.

Now these work fine on the Desktop, but when it switches to the reponsive nav, I am having the following issues.

1. The menu items are repeating on the mobile nav manu. So ity display for example home twice.

2. I need the 2 differnt mobile menus to appear in differnt places, deppending which button is clicked.

3. Would like to add a close button to the menu incase it hides the nav button.

I belive the offending code is :
$navItems = $controller->getNavItems();


Which is loading the data twice.

Note - I have tryed creating a new nav instanse for the top menu with its own globle area, but it still repeats on the Mobile nav.. EVEN when the second nav isnt set to a reponsive template?

Thansk for the help
Carl

carl101lee
 
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi carl101lee,

I am afraid I don't understand what you are describing.

Can you make an image of what you are trying to make?

Can you make screenshots of what you have now?

What is the address of your website?
carl101lee replied on at Permalink Reply 1 Attachment
carl101lee
Good Afternoon ...

OK I think i may have found the solution of re-naming all the css and variables in the reponsive templates and renaming them with the number 2 on the end.

http://kiahpaintinganddecorating.usp3.net...

I have 2 menus on the page which are now seperate menus with differnt templates assigned so as to allow the reponsive menu to display differnt deppending on which menu is used.

See attached...
I may have done this completly wrong and there is a much easyer way to do it but hay it works!

Also they will not work in the Application/blocks location, only in concrete/blocks?

If you coudl not follow my issue, it was Basicly repeating both menus in the Mobile menu, when their are 2 auto navs on the page.. so duplicate page names displayed.

Thanks
Carl