We store our photos in different directories each day since we are a large newspaper. The Token module has enabled me to do this easily. However, since using Token to upload our photos to /files/YYYY/MM/DD, it has broken the links to viewing the thumbnail and other views. Not sure if I'm overlooking something here, but it would be nice to have Token support for ImageCache.

Comments

Farreres’s picture

Version: 5.x-2.0-rc2 » 5.x-2.0

Token support is an important addition and it is needed already. There is imagefield for CCK. This allows one to store images in directories depending in some tokens. Storing all the image files in one directory is absolutely wrong from an organizational point of view (everything is mixed and messed up) and from a performance point of view (a large number of files in one directory makes the directory slow).

With Imagefield the files can be organized in some coherent way. And imagefield displays its images using imagecache, but it is surprising that imagecache doesn't understand the files as imagefield stored them. There has been some discoordination here in developments. Imagechache should recover the files using the same tokens imagefield uses.

dopry’s picture

Status: Active » Closed (fixed)

huh???

imagecache uses the path from imagefield to build it's path... so what ever you're doing with imagefield hsoudl be mirroed by imagecache...

Farreres’s picture

Yes, dopry, you are right. I replied withougt taking the care of checking. Imagecache is in fact doing what it is supposed to do. Perhaps the poster should give more hints as to the problem.