Auto-collapse/toggle category in file browser

WP-Filebase Pro Forums General Support Auto-collapse/toggle category in file browser

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1221
    Rune Clausen
    Participant

    Hi,

    I’m looking for a way to auto-collapse opened category/folder/file tree when clicking on the next folder? I want to avoid the file tree from growing constantly when using the file browser – i.e. only one node allowed open at any time?

    Is this option available through the settings or have I overlooked something?

    Thanks
    Rune

    #1230
    Rune Clausen
    Participant

    Ok. I went ahead and edited the Output.php file in \wp-filebase-pro\classes and added some options after line 776 following the docs and demo at https://github.com/jzaefferer/jquery-treeview to auto-collapse the treeview:

    collapsed: true,
    persist: "location",
    unique: true

    This works for me.

    Cheers
    Rune

    • This reply was modified 8 years, 5 months ago by Rune Clausen.
    • This reply was modified 8 years, 5 months ago by Rune Clausen.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.