Active
Project:
IMCE Wysiwyg bridge
Version:
7.x-1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Dec 2012 at 10:56 UTC
Updated:
20 May 2016 at 18:42 UTC
Jump to comment: Most recent
Comments
Comment #1
mr_kazoodle commentedsubscribing
I would really like to have this functionality: my users cannot be trusted to know what to do.
Comment #2
nixar commentedsubscribing
Comment #3
komlenic commentedIn the IMCE directory settings, in addition to adding a string to specify a path, you can supply php code beginning with "php:". Whatever this code returns, will be the path used by IMCE - in this way you can set the directory per content-type (or many other conditions). In the case of a subdirectory for a given content type, something like this will work:
Assuming your content type is named "foo":
Of course, you'll need to preface that code above with the string "php: " and remove all the newlines.