I see that there is a test for [node:author:uid] in the node module of which I would like to make use of. I don't however have access to this information when setting an upload file path for a File/image field.
I believe this type of token is called a "chained objects token"? I'm struggling to see where the problem is. The rules module makes a special note about chained tokens stating:
Note that token replacements containing chained objects – such as [node:author:uid] – are not listed here, but are still available. The data selection input mode may help you find more complex replacement patterns. See the online documentation for more information about complex replacement patterns.
(online docs didn't help me: http://drupal.org/node/1300042)
So I need to find a way I can use this token. I suspect there may be some dependency issue that a node author may not exist until the node is created in which case controlling the flow of hooks and things could be tricky.
Any ideas?
Comments
Comment #1
neRok commentedFile (Field) Paths module does what you require.