I've been all over this forum and can't find an answer to a very basic question:
What tag do I use in a web template to use the filename WITHOUT the extension? #FILENAME# includes the extension and I don't want that because I'm using it for the caption of the picture.
Also,please, I can't find any explanation for "Information displayed" in the Web page Create dialogue. What does that dialogue actually provide. I press "insert" and see all these choices and yet nothing tells me their corresponding template variables, like <Filename With Ext>. I tried #FILENAME WITH EXT# #FILENAME_WITH_EXT#, and others and nothing works. I'm totally not understanding what "Information display" does.
I tried getting help by clicking "Info" "Help" and get a BAD TITLE error on this web site. I'm using version 1.97.1.
I'd appreciate any guidance. I really love the XNVIEW Web Page Creation feature. It's indispensable to me.
Thanks very much ... Sam
Web Template Variables Confusing to Me
Moderators: helmut, XnTriq, xnview
Re: Web Template Variables Confusing to Me
There is no variable to have filename without extension
And infos are used by #THUMBNAILS_LABEL#
And infos are used by #THUMBNAILS_LABEL#
Pierre.
Re: Web Template Variables Confusing to Me
Pierre, can you further explain what you mean by:
"And infos are used by #THUMBNAILS_LABEL#"
I placed different fields in the display box under "Information displayed" and then used the variable #THUMBNAILS_LABEL# in the "thumb.html" file and nothing good happens. The only thing that appears in place of #THUMBNAILS_LABEL# is the word "Thumbnails".
This takes me back to my question of what function is provided by even having the "Information display" window?
"And infos are used by #THUMBNAILS_LABEL#"
I placed different fields in the display box under "Information displayed" and then used the variable #THUMBNAILS_LABEL# in the "thumb.html" file and nothing good happens. The only thing that appears in place of #THUMBNAILS_LABEL# is the word "Thumbnails".
This takes me back to my question of what function is provided by even having the "Information display" window?
Re: Web Template Variables Confusing to Me
- Go to Create » Web Page... » Information displayed.
- Make sure that the checkbox for Show information is ticked.
- Click on Insert >> and choose Filename to add <Filename> to the fileld.
Example:
... will give you...[color=green]\XnView\WebTemplate\Simple\thumb.html[/color] wrote:<td class="thumbs">
<a href="#FRAME_PAGE#"><img src="#THUMB_LINK#" width="#THUMB_WIDTH#" height="#THUMB_HEIGHT#" alt="#FILENAME#" title="#FILENAME#"></a><br>
#THUMB_TEXT#</td>
[color=green]\output\thumb.html[/color] wrote:<td class="thumbs">
<a href="original/test.html"><img src="thumb/t_test.jpg" width="128" height="128" alt="test.jpg" title="test.jpg"></a><br>
test</td>
Re: Web Template Variables Confusing to Me
XnTriq, THANK YOU VERY MUCH!!!
Worked like a charm! The program author gave me an incorrect variable name, #THUMBNAILS_LABEL#. I wonder what he was thinking.
Am glad you were monitoring this thread!!! You've made me a happy camper.
Best ... Sam Gerber
Worked like a charm! The program author gave me an incorrect variable name, #THUMBNAILS_LABEL#. I wonder what he was thinking.
Am glad you were monitoring this thread!!! You've made me a happy camper.
Best ... Sam Gerber
Re: Web Template Variables Confusing to Me
Good to hear that it's working well for you, Sam 
The output for #THUMBNAILS_LABEL# etc. depends on the language settings in Tools » Options... » Interface.

The output for #THUMBNAILS_LABEL# etc. depends on the language settings in Tools » Options... » Interface.
- #PREVIOUS_LABEL# ~ Previous / Précédent
#THUMBNAILS_LABEL# ~ Thumbnails / Vignettes
#NEXT_LABEL# ~ Next / Suivant
Output:[color=green]\XnView\WebTemplate\Simple\page.html[/color] wrote:<td class="navi">
<a href="#PREV_PAGE#">#PREVIOUS_LABEL#</a> | <a href="#THUMB_PAGE#">#THUMBNAILS_LABEL#</a> | <a href="#NEXT_PAGE#">#NEXT_LABEL#</a>
</td>
[color=green]\output\original\test_2.html[/color] wrote:<td class="navi">
<a href="test_1.html">Previous</a> | <a href="../thumb.html">Thumbnails</a> | <a href="test_3.html">Next</a>
</td>
Re: Web Template Variables Confusing to Me
I get it. Glad it's used somewhere. Don't need it but still good to understand it.
Thanks, XnTriq
Thanks, XnTriq