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

Kane’s picture

Is it possible to include custom tokens as global tokens? SO they'll be available on any fields?

hanoii’s picture

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

Angry Dan’s picture

Status: Active » Postponed (maintainer needs more info)
deciphered’s picture

Wow, 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

13rac1’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)