WordPress.org

Support

Support » Plugins and Hacks » Expandable Menus » [Resolved] How can we load with auto-fold ON ?

[Resolved] How can we load with auto-fold ON ?

  • The pluggin work fine with 3.5, however I had a question. I did not go through your code, but is there anyway we can have a small options (checkbox) to allow to load the menu page with all items folded ?

    To go futher, I would allow a certain X level to be automaticly folded, example, level 2 and up, could be automaticly folded. That would just be awesome.

    http://wordpress.org/extend/plugins/expandable-menus/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Maxaud

    @maxaud

    Hmm, not sure.
    Plugin needs to be rewritten to better support this.

    You may be able to do the following but it’s untested.

    on line 122 of the plugin file you could probably add the following to automatically trigger the collapse on page load:

    jQuery("#menu-to-edit .item-edit").trigger( "dblclick" );

    this would be right after this line:
    jQuery("#menu-to-edit li").on( "dblclick", the_expand_function );

    The above would collapse all elements.

    Plugin Author Maxaud

    @maxaud

    A new version will be released today that will save the folded menus in a browser cookie. On page load it will minimize the menus you have saved in that cookie.

    Thank you, I will test it before the weekend, Im adding a scheduled event to test it. Thank you very much

    PS: Say we have a huge site with alot of menu already, could we force the cookie value to fold everything by default (to start with?)

    That would be amazing, event if that a button we have to press in the options page of the pluggin.

    Thank you !

    Plugin Author Maxaud

    @maxaud

    I’ll consider this for the next version, wouldn’t be too hard to put a button on the page that says minimize all, sets a cookie and reloads the page.

    That would really be amazing, but none the less, as you say it ok for a next release. I guess the trick for now will to fold all second level categories, which there not a ton neither, it especially the third and fourt level that become problematic depending on your categories tree. say that you have like 10-15 subcategory (level 2), then 15-20 on level 3 and something a few in a level 4. Perhaps you can imagine the problem when it load all expanded.

    I dont even understand why this is not a basic feature of WP (As far as managing menu (specially custom menu)).

    Thank again for your collaboration

    Plugin Author Maxaud

    @maxaud

    No problem, glad I could help.

    Yeah, large menus can be a pain.. that’s why this plugin was created in the first place.

    The new version also states how many items are in the minimized parent so that should help.

    Let me know if you encounter any issues.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] How can we load with auto-fold ON ?’ is closed to new replies.
Skip to toolbar