In admin/controller/image.php, we're able to select the folder so that part is done.Qphoria wrote: would need some sort of drop down with a list of the subdirectories inside the image folder that you could select as the target.
This is the part not being currently done. The filename stored in the dbase is only the filename.Then prepend that to the front of the image name (i think that's the gist).
If we could also prepend eg /basetballs/ to the filename in the dbase, then we'd be cooking with gas.
But I don't know how to do that

We have a request thread? Have I been there yet?Might be a good one to add to the request thread for 0.8
... I'm off to find the request thread ........
....... back again ........
I'm too impatient to hunt down the request thread. It's hiding from me

Last edited by jty on Thu Nov 13, 2008 11:58 am, edited 1 time in total.
Hm... no I mean in Admin->Catalog->Images when uploading a new image, you need to have a folder drop down there.jty wrote:In admin/controller/image.php, we're able to select the folder so that part is done.Qphoria wrote: would need some sort of drop down with a list of the subdirectories inside the image folder that you could select as the target.
OR
Better yet, to follow the format of the other admin pages, you could create "categories" and then click the little yellow folder to upload to the folder with the same name as the category.
Kinda like how Options have the name and the values inside the little folder icon.
OK. I C What U meanQphoria wrote: Hm... no I mean in Admin->Catalog->Images when uploading a new image, you need to have a folder drop down there.
I was thinking to use the category name as the folderBetter yet, to follow the format of the other admin pages, you could create "categories" and then click the little yellow folder to upload to the folder with the same name as the category.
If my images reside in a folder with the same name as the category name, then I can prepend
./. foldername . /. to the filename in category.php
But I'm too novice to work out how to prepend the category name to the filename
and then I got stuck on product.php cos I don't know how to include the category name
So I decided to "just live with it" cuz it's easier than going to php school to do a College Degree

At the moment the managing of images is not very elegant.
What we need is this:
OpenCart's admin panel must show the list of images in a browsable tree-style folder list, and it should include not just the image titles (because the same image title could be used for more than one image, or the same image could be refered to by more than one title), but it should also include the image file name path (e.g. 'image/folder/myimage.jpg').
Also, there should 2 ways of uploading images:
1) Separately from OpenCart via FTP, and OpenCart's admin panel would just see it in the browsable folder structure
2) Via OpenCart's admin panel using the Upload button, again with a choise on where on the server within the image folder structure to put the image.
What we need is this:
OpenCart's admin panel must show the list of images in a browsable tree-style folder list, and it should include not just the image titles (because the same image title could be used for more than one image, or the same image could be refered to by more than one title), but it should also include the image file name path (e.g. 'image/folder/myimage.jpg').
Also, there should 2 ways of uploading images:
1) Separately from OpenCart via FTP, and OpenCart's admin panel would just see it in the browsable folder structure
2) Via OpenCart's admin panel using the Upload button, again with a choise on where on the server within the image folder structure to put the image.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Ah.. here's a good tree file system using jquery 
Article:
http://abeautifulsite.net/notebook.php?article=58
Demo:
http://abeautifulsite.net/notebook_files/58/demo/

Article:
http://abeautifulsite.net/notebook.php?article=58
Demo:
http://abeautifulsite.net/notebook_files/58/demo/
Last edited by Qphoria on Thu Nov 13, 2008 11:57 pm, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 4 guests