import icon indicating copy to clipboard operation
import copied to clipboard

Asset searching, include subfolders

Open davist11 opened this issue 8 years ago • 4 comments

It would be awesome if it would include subfolders when searching for an asset.

davist11 avatar Feb 26 '16 18:02 davist11

I did this in a hacky way and added

foreach ($folderIds as $folderId) {
    $folder = craft()->assets->getFolderById($folderId);
    $subFolders = $folder->children;

    foreach ($subFolders as $subFolder) {
        $folderIds[] = $subFolder->id;
    }
}

To the case ImportModel::FieldTypeAssets: in ImportService.php. Probably a much better way to do this since it only searches immediate children subfolders, but it's at least enough for me now.

davist11 avatar Feb 26 '16 18:02 davist11

Will look into this.

boboldehampsink avatar Apr 05 '16 07:04 boboldehampsink

+1 from me for this feature, would be incredibly useful.

futurefabric avatar Aug 02 '16 10:08 futurefabric

Same here.

klepl avatar Nov 20 '16 18:11 klepl