Kunena Menu
Submenu must stay open
14 years 5 months ago #3650
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Submenu must stay open
in your template you have this, I think this is what renders the accordion menu :
Code:
<script type="text/javascript" src="/nieuw/media/system/js/jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('ul.menu li').each(function() {
var liCurr = this;
var liCorrente = jQuery(this);
var aParent = null;
var hasSubMenu = false;
var ulSubmenu = null;
liCorrente.children().each(function() {
if(this.nodeName.toUpperCase() == 'UL') {
hasSubMenu = true;
ulSubmenu = jQuery(this);
}
else if(this.nodeName.toUpperCase() == 'A') {
aParent = jQuery(this);
}
});
if(hasSubMenu && ulSubmenu != null && aParent != null) {
var idName = liCurr.className.replace(/\s*/g,'') + '_submenu';
ulSubmenu.attr('id',idName);
ulSubmenu.css('display', 'none');
aParent.click(function(){
jQuery('ul#'+idName).slideToggle('fast');
return false;
});
}
});
});
</script>
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
14 years 5 months ago #3654
by Ernestine
Replied by Ernestine on topic Re: Submenu must stay open
Aha...i removed this code from the index.php. Now i see the submenu's. But...it now stays open, it don't collapse...??
I have changed several options (Always submenu open on 'no' etc) but no effect...
Do u have an idea?
Thanx again!
I have changed several options (Always submenu open on 'no' etc) but no effect...
Do u have an idea?
Thanx again!
Please Log in or Create an account to join the conversation.
14 years 5 months ago #3656
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Submenu must stay open
Maximenu is NOT an accordion menu ..
you should use the Accordion menu CK available on Joomlack
CEd
you should use the Accordion menu CK available on Joomlack
CEd
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
14 years 5 months ago #3657
by ced1870
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Submenu must stay open
I did not tell you to remove this code, I wanted just to say that your problem is not related to maximenu because it is not really used.
You can use your template menu but then contact the template developper if you want to customize it
Ced
You can use your template menu but then contact the template developper if you want to customize it
Ced
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
14 years 5 months ago - 14 years 5 months ago #3658
by Ernestine
Replied by Ernestine on topic Re: Submenu must stay open
But it is a drop-down menu if i'm right? I want the submenu's to appear under 'Portfolio', thus a drop down menu...??
I used a blanco template ande made it by myself, so i'm the developer, hihi.
And i removed the script, because i used it with another menu which it also didn't work. So the script isn't useful.
I used a blanco template ande made it by myself, so i'm the developer, hihi.
And i removed the script, because i used it with another menu which it also didn't work. So the script isn't useful.
Last edit: 14 years 5 months ago by Ernestine.
Please Log in or Create an account to join the conversation.
14 years 5 months ago #3659
by ced1870
and no, the behavior you have on the menu is Accordion, not dropdown.
Ced
Joomlack Webmaster and Developer
Replied by ced1870 on topic Re: Submenu must stay open
so if you put this jquery code you should know how it works !I used a blanco template ande made it by myself, so i'm the developer, hihi.
and no, the behavior you have on the menu is Accordion, not dropdown.
Ced
Joomlack Webmaster and Developer
Please Log in or Create an account to join the conversation.
Time to create page: 0.210 seconds



