• Resolved rdkumm

    (@rdkumm)


    Using 3.9

    I’m looking to have recursive search. Simple map of how I’m structured is…
    dir
    — sub dir 1
    — — file 1
    — — file 2
    — — file 3
    — — file 4
    — sub dir 2
    — — file 1
    — sub dir 3
    — — file 1
    — — file 2
    — file 1
    — file 2

    When I search it only retrieves root’s sub dir and files, but not any sub dir files. Maybe it’s just me not using what is there correctly, but I see no difference with recursive on/off or with directories on/off.

    Thanks in advance, and great plug in!

    https://www.ads-software.com/plugins/file-away/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author thomstark

    (@thomstark)

    Please show me what your shortcode looks like.

    Thread Starter rdkumm

    (@rdkumm)

    [fileaway base=”3″ size=”no” manager=true recursive=true thumbnails=”permanent” thumbsize=”small” thumbstyle=”squarerounded” images=”none” type=”table” mod=”no” customdata=”tags” metadata=”database”]

    Plugin Author thomstark

    (@thomstark)

    recursive and manager mode are either/or. Manager mode gives you directory tree navigation. You can’t have both recursive mode and directory tree mode enabled at the same time. Manager/directory tree mode override recursive mode. With directory tree mode, you navigate the directories. With recursive mode, you get all the files from all directories in one table, without directory navigation.

    Thread Starter rdkumm

    (@rdkumm)

    OK thanks!

    Thread Starter rdkumm

    (@rdkumm)

    in recursive mode my tags don’t show up.

    [fileaway base=”3″ size=”no” recursive=true thumbnails=”permanent” thumbsize=”small” thumbstyle=”squarerounded” images=”none” type=”table” mod=”no” customdata=”tags” metadata=”database”]

    Plugin Author thomstark

    (@thomstark)

    That’s interesting. I’ll see if I can duplicate that as soon as I get home.

    Thread Starter rdkumm

    (@rdkumm)

    thanks, I created the tags in manager mode then switched to recursive mode.

    Plugin Author thomstark

    (@thomstark)

    Got a one-line fix for you. It’ll be included in the next release, but I’m also doing a few other things, so if you want to go ahead and fix it now, do this:

    1. Open up in an editor: /wp-content/plugins/file-away/lib/inc/inc.file-array.php

    2. On line 12, Change this:

    $dir = $recursive ? str_replace($slices['basename'], '', $file) : $dir;

    to this:

    $dir = $recursive ? str_replace($slices['basename'], '', $file) : $dir;
    $dir = trim($dir, '/');

    3. Save the file and reupload it.

    Done.

    Plugin Author thomstark

    (@thomstark)

    Or… just update to 3.9.5, which is now up.

    Thread Starter rdkumm

    (@rdkumm)

    Thanks I’ll get the update! Great support response.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Recursive Search’ is closed to new replies.