Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be great if the site administrator could set the default location of users' personal directories as placeholders. The way it's setup right now, it defaults to u1, u2, u3. This causes problems in multi-site setups where different users sometimes have the same user id among different sites. If the personal directories use placeholders set by the system admin, you could set the personal directories to something like "%uid-%username", and no conflicts would be made.
Comments
Comment #1
RobLoachAnother idea for a place holder is %sitename. You could then use %sitename-%uid to make the personal directory truly unique.
Comment #2
drupalnesia CreditAttribution: drupalnesia commentedI like to use 'name' instead 'uid' because easy to read " John" rather then "u275'.
Comment #3
lias CreditAttribution: lias commented+1 username
Comment #4
Andy Ramblings CreditAttribution: Andy Ramblings commentedWhat you can do, I guess, is if you have multiple roles, you could have the default folder change from User to the name of the role.
For uniqueness, I would would use, Role>name at the moment you can have Role>UID
Andy
Comment #5
drupalnesia CreditAttribution: drupalnesia commentedI just put this feature into openWYSIWYG module. You can use: user id, user name and domain name as variable.
Such as [domainname]-[username] will be translate to xyz.com-yourname, to avoid conflict when users use same username but different domain.
Please open issue in http://drupal.org/project/openwysiwyg when you have another idea. Thanks.
Comment #6
Antenna-1 CreditAttribution: Antenna-1 commentedThe u%uid as a placeholder for personal directories is fine!
Can you tell me the Drupal placeholder for the group name? So memebers of a group will share a common directory for images and documents.
Thanks in advance for any answer.
Comment #7
ufku CreditAttribution: ufku commentedIMCE does not support any placeholder other than %uid, however it supports usage of PHP in directory paths, which offers unlimited options.
Comment #8
mk31762 CreditAttribution: mk31762 commentedHow would that work? Surely you don't mean using PHP code directly in the input field on the admin page.