Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I was wondering if there is a way to stop some folders/files being indexed by SilverStripe (3.1) when they are stored in the assets folder, we have files that are uploaded and extracted, the extracted folder I do not want this indexed automatically,
Any ideas appreciated.
The easiest way is to start the name of the folder with an underscore.
Okay thanks Simon didn't know that, is that in the documentation?
And the hard way? :)
Hi I just tried that and it doesn't work creating a folder with an leading underscore like '_foldername' still gets indexed by Silverstripe in Files.
Any other ideas?
Yes. The leading underscore doesn't work anymore... in favour of a hardcoded '_resampled' or '_combinedfiles'... though not sure why...
You can use the dot as the prefix (.myfolder) or you can define your own blacklist pattern:
# blacklist the underscore
Hi Devlin, thank you that worked at treat!