Placeholders for Personal Directories

Rob Loach - December 18, 2006 - 18:14
Project:IMCE
Version:6.x-1.2
Component:Documentation
Category:support request
Priority:minor
Assigned:Unassigned
Status:closed
Description

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.

#1

Rob Loach - December 19, 2006 - 23:13

Another idea for a place holder is %sitename. You could then use %sitename-%uid to make the personal directory truly unique.

#2

drupal-id.com - December 31, 2006 - 11:08

I like to use 'name' instead 'uid' because easy to read " John" rather then "u275'.

#3

lsabug - January 25, 2007 - 21:26

+1 username

#4

Andy Ramblings - February 5, 2007 - 15:48

What 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

#5

drupal-id.com - October 4, 2008 - 16:40
Status:active» closed

I 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.

#6

Antenna - September 22, 2009 - 08:49
Version:5.x-1.x-dev» 6.x-1.2
Component:Code» Documentation
Category:feature request» support request
Status:closed» active

The 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.

#7

ufku - September 24, 2009 - 23:06
Status:active» closed

IMCE does not support any placeholder other than %uid, however it supports usage of PHP in directory paths, which offers unlimited options.

 
 

Drupal is a registered trademark of Dries Buytaert.