How to keep the menu closed

How to keep the menu closed was created by poyyerphx

Posted 11 years 6 months ago #6114
Hi JoomlaCK staff!

First of all, THAN YOU for this awesome module!!!

My question is... how to keep the CK Menu closed after clicking one of the sub-menu items. For example, in the homepage the menu displays closed (Great, as it should be), but when you click in one of the sub-menu items and go to that page, the CK menu appears already open. I thought it had something to do with the active state style of the sub-menu items, so I tried to modify my CSS, but still no luck: the CK menu keeps open unless I manually close it.

Hope you could give me some advice regarding this.
Thanks again for the module.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to keep the menu closed

Posted 11 years 6 months ago #6116
Hi
yes this is the standard behavior. If you want to change this you must hack the JS file and disable the line :
Code:
show: activetoggler,
Ced

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: poyyerphx

Please Log in or Create an account to join the conversation.

Replied by poyyerphx on topic How to keep the menu closed

Posted 11 years 6 months ago #6117
WOW that was FAST!

Thanks a lot Ced!
Best Regards!

Please Log in or Create an account to join the conversation.

Replied by poyyerphx on topic How to keep the menu closed

Posted 11 years 6 months ago #6139
Hi Ced!

Sorry to bother you again with this. I tried disabling the "show: activetoggler," line by commenting it, but the result I got was that the CK Menu is always displayed open (which is the opposite effect I was looking for).

Am I doing something wrong? or is there a specific way to achieve this. (I attached a screenshot)

Thanks again for the great support
Best Regards.

Attachments:

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic How to keep the menu closed

Posted 11 years 6 months ago #6149
ok, give it the value -1 :
Code:
show: -1,

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by nicob on topic How to keep the menu closed

Posted 11 years 6 months ago #6167
Hi Ced,

Thanks for the awesome module!

I don't have the same problem as the topic opener, but I think the source is the same.

My problem: I would like that the main menu opens in the accordeon style, when I load the page. Therefore I tried what happens if I comment the "show: activetoggler" line, and (surprisingly for me) the menu opens in accordeon style, when I load the page. But the problem is that the first menu point is activated and the according submenu is also open.

Is there a way that the menu opens like a accordeon, but that no menu point is activated? That would be great.

Thanks a lot for the support.
Cheers,
nicob
by nicob

Please Log in or Create an account to join the conversation.

Time to create page: 0.667 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 299 guests and no members online