VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jjk on September 29, 2011, 09:30:51 AM

Title: Feature request for configuration - media file settings
Post by: jjk on September 29, 2011, 09:30:51 AM
In case people (like myself) are using subcategories for the media files, uploading new images via 'Product Edit' - 'Product Images' - 'Attach new image' would be easier if there would be an additional field for setting the product thumbnail path in 'Configuration' - 'Media File Settings', which can be set to a certain subfolder temporarily.  At present uploading/replacing an image this way doesn't work for the thumbnail, because I can't set the correct path to the resized/subfolder. The thumbnail always ends up in the images/parent folder instead of the images/resized/subfolder.

For a future version I would appreciate if I could select the "upload/replace to..." folder from a list of /images subfolders.
:)
Title: Re: Feature request for configuration - media file settings
Post by: Milbo on September 29, 2011, 09:36:39 AM
They are not stored in the resized folder?
Title: Re: Feature request for configuration - media file settings
Post by: jjk on September 29, 2011, 10:13:22 AM
No, in my case the thumbnails do not end up in the resized folder. However, I don't use the default folder setup.
I did shorten the folder path a little bit using:

/images/art/
   subfolder1
   subfolder2
   ...

/images/art/resized/
   subfolder1
   subfolder2
   ...

In the above folder structure 'replace thumb' places the thumbnails in /images/art.

If I want to upload product images this way, I can set the image path to the correct subfolder temporarily. But for the thumbs I don't have this option.
Title: Re: Feature request for configuration - media file settings
Post by: Milbo on September 29, 2011, 10:42:13 AM
But only when you use "replace thumb" ?
First I must get it working the way it is,.. after that I may allow to overwrite the paths (only for admins then of course)
Title: Re: Feature request for configuration - media file settings
Post by: jjk on September 29, 2011, 11:29:08 AM
Quote from: Milbo on September 29, 2011, 10:42:13 AM
But only when you use "replace thumb" ?
First I must get it working the way it is,.. after that I may allow to overwrite the paths (only for admins then of course)
Also happens with the product image. With the folder structure mentioned above, replacing a product image, the file normally ends up in the /images/art folder. The difference compared to the thumbnail replacement is that I can temporarily set the folder for the product image to /images/art/subfolder1 in VM2 configuration - image path settings, in order to have the replacement image in the correct product image subfolder.

...I can work around this problem. (That's why I labeled it "feature request". So you may postpone working on this for a while...:-)

Maybe, some time in the future there is a chance for an ftp-type view offering "upload/replace from »choose directory« to imagepath »choose directory«  :)