Drupal 7 FileTree Not Working On Some Directories

November 9th, 2017  | Categories: Drupal, Drupal 7

PROBLEM
FileTree isn’t working properly. We need it to only show a certain directory but only the root will work. Only the following works:

[filetree dir="/" dirtitle="Click to toggle." filename="%basename (%extension - %size)" filetitle="Click to download this %extension file. (%extension - %size)"]

SOLUTION
I couldn’t solve this one for a while. I tried modifying the Full HTML filter, only saving it in code view for CKEditor… nothing. Other directories would work though, so it was weird.

I then thought it was something to do with the permissions and it turns out I was correct. We modified the permissions on the folder and traversed those permissions. Now FileTree can access all the files underneath the folder.

[filetree dir="committees/disorders/Disorders 2004-2014" dirtitle="Click to toggle." filename="%basename (%extension - %size)" filetitle="Click to download this %extension file. (%extension - %size)"]
No comments yet.

TOP