I can't get tokens to determine the subfolders for uploaded files. I would like to use [term]
- but have tried using others and none of them appear to work. I there something I have missed? Any help would be greatly appreciated.
I am using Drupal v 5.10
Comments
Comment #1
davidwhthomas commentedhave you installed the token module?
Comment #2
KG2 commentedHi there,
Thanks for responding. Yes, I have installed the token module. My problem appears to have been that Upload path could not create a [term] directory for new nodes. I have resolved this (temporarily) by first submitting the node, and then editing and uploading attachments.
I have seen a similar problem discussed with yyyy, mm, dd tokens
http://drupal.org/node/219132
They suggest adding the following to /modules/token/token_node.inc before line 21
Would such a solution work for a Taxonomy term token? Or am I barking up the wrong tree? (I am no coder - but can follow directions...)
My other problem is with Upload paths for image nodes. Paths set for images with this module do not work at all (this not just a token issue, but all directories are ignored). This issue is mentioned here:
http://drupal.org/node/257871
Is there any way to get around this conflict?
Any help would be greatly appreciated.
Regards
Comment #3
davidwhthomas commentedCertain tokens might not be available at that point in the node save.
Perhaps the logic could be moved to occur after update or similar but in the meantime, try using other tokens that are available.