On my site I use own module which control uploaded path for files (uploads with module upload). It would be desirable to have an opportunity more flexibly to control uploaded path for images in the module node_image. I have made a small patch, which adds some variables (%nid and %notetype) in admin interface of the module. As idea for the further development - uses module Token for formation of final uploaded path.
Thanks for comfortable module!

CommentFileSizeAuthor
node_images.module.diff2.99 KBLibra

Comments

marcoBauli’s picture

tidying up the queue from duplicate issues:

newswatch wrote:

Right now the node images path is \files. And the variables are %uid and %username only. The way I am planning a site the number of images would be huge. Would become unmanageable soon.

Ideally I would like to create a path like yyyy/mm/dd. Would be much easier to keep track of images.

Now, how can I add variables to the path?

ray007 wrote:

Currently there are 2 variables available for replacement for the imagepath: %uid and %username.
I think it would be cool if we had a variable %nid so we can store images for all nodes in separate directories.
And when we're looking at it, maybe we could use the token-module here for even more flexibility?

stefano73’s picture

Status: Needs review » Reviewed & tested by the community

Added the %nid variable to node_images path. You can try the patch here: http://drupal.org/node/118702#comment-675694