Is it possible to insert a filename (#FILENAME#) to the html-thumbnail-template without suffix (.jpg)?
I would like to modify the link of the thumbnail-pic to a fixed URL with filename as parameter, eg. http://anotherwebsite/php?PIC or http://anotherwebsite/PIC.html (where PIC = filename without suffix)
Thanks for your help!
html template - filename WITHOUT suffix
Moderators: helmut, XnTriq, xnview
Edit the template, find {img src="#THUMB_LINK#"} and change it to {img src="http://anotherwebsite/php?PIC#THUMB_LINK#"}. The resulting webpage after you create a webpage from some thumbs should say something like {img src="http://anotherwebsite/php?PIC/subdirectory/image.jpg"} where "subdirectory" is what you put in the "thumbnail sub-folder" blank on the webpage creation form. If you leave that spot on the form blank, you can make it put them in the parent folder (ie, if you left both that and the one for the original images blank, then all the images & all the html files would be in the same folder). If you left both fields blank and set the template to {img src="http://anotherwebsite/php?#THUMB_LINK#"}, you would wind up with each image link being http://anotherwebsite/php?PIC1.jpg, http://anotherwebsite/php?PIC2.jpg, http://anotherwebsite/php?PIC3.gif, etc
I don't think it's possible to remove the extension completely unless you manually editted the file afte xnview created it (and then you'd have to rename each of the images & remove the extension from them as well), so winding up with http://anotherwebsite/php?PIC1, http://anotherwebsite/php?PIC2, etc would be impossible.
I don't think it's possible to remove the extension completely unless you manually editted the file afte xnview created it (and then you'd have to rename each of the images & remove the extension from them as well), so winding up with http://anotherwebsite/php?PIC1, http://anotherwebsite/php?PIC2, etc would be impossible.
There's a topic with a list of all variables avaible in web templates.