I am using CCK and ImageField on D6 and have a quick (I hope) question. I like that you can supply tokens in the path for image uploads like:
Token Replacement value
User tokens
[user] User's name
[user-raw] User's unfiltered name. WARNING - raw user input.
[uid] User's ID
[mail] User's email address
[reg-date] User's registration date
[reg-since] Days since the user registered
[log-date] User's last login date
[log-since] Days since the user's last login
BUT, what I want to do is use the Node ID as a token, but it is not offered on the list - is this possible? Or would the system have problems since the Node ID isn't assigned until after the node is submitted? I would still think the system would be able to insert the node data in the main table, get the result Node ID, then upload the files in the proper directory then add the rest of field data to the node table.
Any one try to do this?
Comments
NODE ID
I would also like to use node id as a path so that i can group all pictures associated with the node in a separate directory. do you ahve any further news on this?
I would like to know too I
try
http://drupal.org/project/filefield_paths