Hi,
I use CCK + ImageField to include images to a node. I tried to specify a path like that. "/images/[nid]" but this is not working. When i use "/images/[user]" everything works fine!
Any idea? Thannks.
Christian
Hi,
I use CCK + ImageField to include images to a node. I tried to specify a path like that. "/images/[nid]" but this is not working. When i use "/images/[user]" everything works fine!
Any idea? Thannks.
Christian
Comments
Comment #1
drewish commentedi you double check [nid] isn't listed in the list of tokens. that's because a file could be attached to multiple files and there's no way of knowing which node it's attached to.
Comment #2
francula commentedComment #3
francula commentedHi,
thanks for your fast answer. You are right the [nid] is not in the list. But I would like to have it!
I did not get that sentence "that's because a file could be attached to multiple files"? I think the second files should be a node. But how can that be? Isn't it always the node where the file was uploaded?
Why do I need this? I wanna store all images which are uploaded at a node in a seperate folder (eg. img1, img2, img3 are uploaded at node 1 --> folder 1. ImgA, ImgB are uploaded at node 2 --> folder 2.
Regards Christian
Ps. If you are not going to do it, could you give me a hint if i can do that and how?
Comment #4
quicksketchYou can install FileField Paths module to get access to node-level tokens.