Chatting to a mate on IRC last night, he was trying to get a token that could be used to sort files into directories based on the type (Video, Image, etc) using FileField Paths. I suggested he write a simple token that looks at the mimetype and outputs a cleaner type using Custom Tokens.
Unfortunately it appears that Custom Tokens doesn't allow for 'Field' tokens. I think this would be a great addition to a fantastic module.
Hope you take it into consideration.
Cheers,
Deciphered.
Comments
Comment #1
Kane commentedIs it possible to include custom tokens as global tokens? SO they'll be available on any fields?
Comment #2
hanoii@Deciphered: I am not sure if I have followed you on your request, how would you use a token for sorting files?
@Kane:, yes, you can define global tokens.
Comment #3
Angry Dan commentedComment #4
decipheredWow, this is an old one.
The request was really simple, Drupal 6 had field tokens, tokens that where passed the individual field data. Such a token could be used with the FileField Paths module so that you could sort files into folders by mime-type or something much more complex.
I have little to no interest in Drupal 6 anymore, so feel free to close this issue.
Cheers,
Deciphered
Comment #5
13rac1 commented