-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: add cookie for menu state #5
Comments
@lenamtl |
I have added a basic cookie support as I needed it for my open source CMS (http://www.mvcwcms.com). If you have more than one menu in a single page you need to specify the cookieName attribute as in the following example:
This is the modified plugin:
|
I have two or more menus as below : And as you suggested I am giving each menu an id and passing a cookie name : But when I click on "Add Artist" sub menu the first time it is fine, then open "Manage lyrics" and click on "All lyrics" the view changes but menu would be still "Add Lyrics"...if I click once more it seems to be fine..any solutions? |
Added cookie support as specified here: onokumus#5
I have fixed the above issue by adding a cookie expiration. Change has been submitted here: https://github.com/onokumus/metisMenu/pull/10/files Now you can also specify the cookieExpiration (number of days) that by default is 1. |
Great feature added ;) thanks |
@valgen Thanks! Works great. |
Thanks |
Works great. Why it's not in master? |
I would like to see this in master perhaps 2.0.1 ASAP |
+1 Yes please add it to the latest version. I'm trying to use this code with the actual JS code but the JS code is different, anyone have done the modification yet? |
You will need to patch this manually. Sent from my iPhone
|
Any change someone can add the feature to "find" the current selected item by location/url rather than with cookies? Thanks! |
+1 |
how to use this plugin? |
Any update? |
Are you planning to add a way to remember menu state using cookie
or localstrorage?
The text was updated successfully, but these errors were encountered: