23486 Posts in 18995 Topics by 2878 members
|Go to End|
13 February 2014 at 2:04pm
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.
13 February 2014 at 2:30pm
The easiest way is to start the name of the folder with an underscore.
13 February 2014 at 2:33pm
Okay thanks Simon didn't know that, is that in the documentation?
And the hard way?
13 February 2014 at 3:22pm
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?
14 February 2014 at 12:58am Last edited: 14 February 2014 1:01am
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
14 February 2014 at 11:11am
Hi Devlin, thank you that worked at treat!
|Go to Top|