drstuey
07-03-08, 08:39 AM
Hi,
I am using the extra product images module to display extra images.
The code gets the filename of the extra image and writes it into the PROD page. But I would like to be able reference different versions of the image (e.g. medium, large, thumbnail). I can write the code that will add the extension for the different version to the filename, e.g. add "_thumb" to the filename to make the thumbnail version, but the database stores the filename with .jpg.
So for example the extra product images module stores "myimage.jpg" and I add "_thumb" to it, and this makes "myimage.jpg_thumb". Consequently, currently I am storing "myimage" in the database and adding "_thumb.jpg" to it. But this is difficult for the client.
So what I want to do is take "myimage.jpg" from the database, remove the .jpg part and add "_thumb.jpg". Or to just insert "_thumb" before the ".jpg".
Clear?
I understand that Emporium toolkit module can do this.
SO, my question is, how can I use Emporium toolkit module to do this? Which of the toolkit functions should I be using? This is pretty standard programming I guess, but I'm not a programmer.
I am using the extra product images module to display extra images.
The code gets the filename of the extra image and writes it into the PROD page. But I would like to be able reference different versions of the image (e.g. medium, large, thumbnail). I can write the code that will add the extension for the different version to the filename, e.g. add "_thumb" to the filename to make the thumbnail version, but the database stores the filename with .jpg.
So for example the extra product images module stores "myimage.jpg" and I add "_thumb" to it, and this makes "myimage.jpg_thumb". Consequently, currently I am storing "myimage" in the database and adding "_thumb.jpg" to it. But this is difficult for the client.
So what I want to do is take "myimage.jpg" from the database, remove the .jpg part and add "_thumb.jpg". Or to just insert "_thumb" before the ".jpg".
Clear?
I understand that Emporium toolkit module can do this.
SO, my question is, how can I use Emporium toolkit module to do this? Which of the toolkit functions should I be using? This is pretty standard programming I guess, but I'm not a programmer.