I'm having trouble using the #PIC_TEXT# field or variable when creating the individual webpages from a group of images using the "page.html" template.
I'm not sure, maybe Xnview might be working ok, and I just cannot find any way to input text data into the metadata of an image file for Xnview to then pull out again using the #PIC_TEXT# call in the templates.
Right now the #PIC_TEXT# always return nothing. I've tried loading up an image with every IPTC field that pops up with Ctrl- i, and also have tried adding meta data using windows file explorer properties dialog, but nothing seems to work. Maybe #PIC_TEXT# is data in the image that I cannot even control or edit or input?
My goal is to be able to add a caption to the iptc metadata of an image, and then when I generate webpages for that image, have the caption of the image be put into a PHP variable so I can then have my website use the caption text in the the HTML <title> tag.
I've figured out how to successfully use a bunch of the other tags as PHP variables, here's the template for my "page.html," Right now, it seems no matter what I do, the PHP variable $TitleTagText always comes out to be "" which tells me that xnview isn't finding anything in the image to put there:
Code: Select all
<?php $PATH = '../../../'; $image_title = '#FILENAME#'; $image_alt = '#FILENAME#'; $prev_page = '#PREV_PAGE#'; $next_page = '#NEXT_PAGE#'; $filename = '#FILENAME#'; $TitleTagText = '#PIC_TEXT#'; $pic_width = #PIC_WIDTH#; $pic_height = #PIC_HEIGHT#; include $PATH."inc/image_page.php"; ?>
As you can see the "page.html" template makes individual image webpages that are really just PHP code with variables filled in by xnview, which my website then uses along with the image to display a page like shown here:
http://www.2wings.com/m12/images/sn291/ ... _2219.html
Maybe there is some other way I could use the IPTC caption field from an image?
Any help or possible solutions would be appreciated!