Template keywords

Top  Previous  Next

Keywords may be inserted to text of HTML templates and edit fields of theme options (e.g., you can make a title of image out of keywords). They are framed "[" and "]". When generating, the keyword with brackets will be replaced by information entered by user (e.g., album title) or theme author (e.g., background color). Example - html-tags + keywords in image title template, input in the field "Thumbnails title text" of the Theme editor:

 

<b>[image.name]</b><br><small>[image.width]x[image.height]</small>,

 

After generating, the following line will appear in HTML file

 

<b>The Shadow of the Past</b><br><small>320x200</small>,

 

The user will view in browser the following:

 

The Shadow

of the Past

320x200

 

When generating, only those constructions with brackets will be replaced, which include AlbumWeb keywords. All the rest remains.

 

A keyword consists of the name of object (such as "image") and property of object (such as "width"), separated by point ("."). When generating, a keyword is replaced by information it refers to. For instance, if there is a keyword in the template of image-page - "the image-page index" ("imagepage.index"), it will be replaced by index of generating page in the list of all image pages.

 

List of objects, where you can get information:

 

album - contains properties for the whole album (e.g. quantity of chapters)

 

chapter - contains properties for the whole chapter (e.g. quantity of images)

 

meta - you can get access to properties of meta tags, entered by user, through this object

 

image - current image for page

 

page - current page

 

files - extended files list

 

firstpage - the first page from list of pages (e.g., the first page from the list of pages with images) relative to the current page

 

lastpage - the last page from list of pages relative to the current page

 

nextpage - the next page from list of pages relative to the current page

 

prevtpage - the previous page from list of pages relative to the current page

 

indexpage - index page with links for current page with image(s)

 

imagepage - page with imaged for current index page (page with images is selected for first thumbnail on the index page)

 

startpage - the first page of album

 

frontpage - the first page of gallery (such as index.htm)

 

showpage - page with slide show support

 

 

Description of object "album" properties:

 

name - name of album, input by user

descr - description of album, input by user

rating - rating of album, input by user ( 0 - 10 )

author - album author

notes - notes for album, input by user

keywords - album keywords, input by user

date - date of album creation

time - time of album creation

 

Description of object "chapter" properties:

 

name - name of album, input by user

descr - description of album, input by user

rating - rating of chapter, input by user ( 0 - 10 )

author - chapter author

notes - notes for chapter, input by user

keywords - chapter keywords, input by user

border - enable frame border ("yes" or "no")

noresize - prohibition to resize frames ("noresize" or "")

width - width of index frame

thumbs - index frame name

images - image frame name

count - images count

pages - image pages count

index - index pages count

 

Description of object "meta" properties:

 

charset - page charset

keywords - page keywords

description - page description

author - page author

 

Description of object "image" properties:

 

index - image index in list of images

width - image width

height - image height

tagwidth - transformed image width

tagheight - transformed image height

size - image file size (in bytes)

sizekb - image file size (in Kb)

tagsize - transformed image file size (in bytes)

tagsizekb - transformed image file size (in Kb)

name - image short name, input by user

desc - image description, input by user

rating - rating of image, input by user ( 0 - 10 )

author - image author

notes - notes for image, input by user

keywords - image keywords, input by user

srctitle - source image file title

srcpath - source image file path

desttitle - destination image file title

address - destination image URL

target - image target URL

captiontag - image title target URL

title - image title

alt - image ALT-text

shwidth - image shadow width

shcolor - image shadow color

date - date of image taken

time - time of image taken

length - length of movie [in sec]

rate - frame rate [frame in sec]

exif*** - an image EXIF tag

iptc*** - an image IPTC tag

 

Description of objects "firstpage", "lastpage", "nextpage", "prevpage", "indexpage", "imagepage", "startpage", "frontpage", "showpage" properties:

 

index - page index in list of pages

address - page URL

title - page title

text - page text color

link - page hyperlink color

alink - page active hyperlink color

valink - page visited hyperlink color

bgcolor - page background color

bkgrnd - background image

hmenu - horizontal menu bar (always inserted)

vmenu - vertical menu bar (always inserted)

topmenu - top menu bar

bottommenu - bottom menu bar

leftmenu - left menu bar

rightmenu - right menu bar

table - image table

 

 


 

reference Related topics:

 

Text editor

 

Menu bars