Support » Plugin: FileBird - WordPress Media Library Folders & File Manager » Another getFolders-Question

  • Resolved Gerdski

    (@gerdski)


    Hello,

    II am using getFolders to … yes … get the Folders 🙂

    When I use this:
    use FileBird\Classes\Tree;
    $folders = Tree::getFolders( null );
    I get the complete tree.

    How can I get only a part of the tree? Like, e.g. only Folder #7?
    Tree::getFolders(7) doesn’t work. Looking in includes/classes/Tree.php I can see why:

    $tree = self::getTree($folders_from_db, 0, $default_folders, $flat, $level, $show_level);

    The second parameter sets the parent for getTree(), but it always 0 here.
    Is there any way to change this?

    Thanks a lot!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    Thanks for coming today!

    This was forwarded to our developers unit and we might have this in the next coming update.

    Kind regards,
    -Bruce-

    Thread Starter Gerdski

    (@gerdski)

    Very good. This Update is only a few weeks or days away, right? 😀

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    Yes, it could be few days to few weeks 😉
    Thank you.

    Kind regards,
    -Bruce-

    Plugin Support Bruce

    (@ninjateamwp)

    Hi @gerdski ,

    We updated the new function to GIT (not updated to wp.org yet), this is how to use:

    use FileBird\Classes\Tree;
    $folders = Tree::getFolder( 2 );

    2 is folder id of your folder.

    Kind regards,
    -Bruce-

    Thread Starter Gerdski

    (@gerdski)

    Hey, great.

    Sorry, I’m a good developer but unable to handle GIT.
    When will it be on wp.org?
    A few days waiting doesn’t matter, I believe the Customer will not call before easter…no hurry…

    Thread Starter Gerdski

    (@gerdski)

    Hello again,

    Is it right that the new plugin version is not yet published?
    I need the new function (select startup folder) now…what must I do to get it via GIT?

    Plugin Author Ninja Team

    (@ninjateam)

    Hello @gerdski ,

    As you can see here, the startup folder feature is in our Proversion https://ninjateam.gitbook.io/filebird/compare-filebird-free-and-pro

    Best regards,
    Kelly

    Thread Starter Gerdski

    (@gerdski)

    I was talking to Bruce, and there was no mention of this function being only in the Pro Version. Maybe this is a misunderstanding?

    Thread Starter Gerdski

    (@gerdski)

    But it doesn’t matter too much, I have found a solution.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.