Parent item in menu opening a page


Author Message
Paolo

Posted: 12/3/2013
Quote message 

I have created a Joomla! template using Artisteer 4.2.0.60623 with a vertical menu.

One of the menu items has sub-items; when I click on the parent item, the sub-menu appears.

However I would like two things to happen when clicking: 1) the sub-menu must appear and 2) the page (article) corresponding to the parent item must be opened.

I see that the proper href="..." is there in the code so it must be a js matter.

Any suggestions please?

Thank you,

Paolo
 
Paolo

Posted: 12/4/2013
Quote message 

Anyone from Artisteer support maybe ...?
 
Helga
Artisteer Team

Posted: 12/4/2013
Quote message 

Paolo,
Please try changing the vmenu Levels to "Expand with Reload" under the Vertical Menu tab >> Levels.
This should help.
 
Paolo

Posted: 12/5/2013
Quote message 

Thanks Helga,

However if I change that setting in the Artisteer project, export it and replace the script.js file in the template, the menu parent item opens the corresponding page but the sub-items do not appear anymore.

Maybe there are more files I should replace?

Please consider I have manually edited several files after exporting the template so I can not just overwrite all the files.

Thanks for your assistance.
 
jrgweb

Posted: 12/5/2013
Quote message 

@Paolo -

If I'm not mistaken you need it set to "expand with reload".

This is telling me that once clicked menu will open and page will load.
 
jrgweb

Posted: 12/5/2013
Quote message 

I guess I should add that In HTML websites this is how it works.
I'll have to test with joomla.
 
jrgweb

Posted: 12/5/2013
Quote message 

@Paolo - Just tested this in joomla 3.2 and it works if I understand your post. :-)
 
Paolo

Posted: 12/5/2013
Quote message 

Hi jrgweb,

Thanks for testing.

I built my template and vmenu levels was originally set to "Expand with a click".
I exported it and manually edited several files, including index.php, all css files.

Now I have set vmenu levels to "Expand with reload" and re-exported the template but I can not simply overwrite all of its files because of my editing.

So I have overwritten the script.js file (keeping a copy of the original of course) -> the correct parent page open but the manu sub-items do not appear anymore.

I therefore suppose that the new setting has changed something in one or more other files but I can not figure out which.

Paolo
 
jrgweb

Posted: 12/5/2013
Quote message 

@Paolo - Okay I understand!!

In the script.js around line 579 is additional function:
jQuery(function() {
"use strict";
setOpenSubmenuWithNoReload({vMenuClass: "art-vmenu", activeClass: "active", hoveredClass: "hovered"});
});
and it continues....

This function goes to line 621.
Make sure you have backups!! :-)
 
Paolo

Posted: 12/5/2013
Quote message 

Hi jrgweb,

Thanks again but ... what am I supposed to do with those lines?

Erase them?

Paolo
 
jrgweb

Posted: 12/5/2013
Quote message 

@Paolo - yes! either comment them
out or remove. make a backup
 
Paolo

Posted: 12/11/2013
Quote message 

Mmm no way ... either the parent page is shown or the menu slides down.

I have adopted a workaround by moving the content to another page and kept the sliding menu, no need to spend more time on trying to understand what is wrong and where.

Thanks for your help jrgweb!
 
Rob

Posted: 9/28/2015
Quote message 

I have this same problem, does anyone know what files I need to replace or what code to change would be a great help
 
EDGAMA

Posted: 1/25/2016
Quote message 

Since you tried to activate the "Show menu items" and defined as "art-vmenu" the CSS class in the module configuration?

Hope that help. 8-)