Pixelpost

Authentic Photoblog Flavour

FAQ /

Template Related Questions

I am confused: I read about template tags and about tags for photos. What does that mean?
Can I offer more than two languages to my visitors?
Where can I set the number of thumbnails shown per row in the archive page?

Template Tags and Tags for Photos

Unfortunately there is the same word "tag" for two complete different things. We at Pixelpost did not invent this but we try to reduce confusion by distinguishing them using "template tags" and "tags".

"Template Tags" are substitutes for automatically produced content created by the Pixelpost scripts. You use them in your templates as placeholders for interactive parts of the page like the image id or the comments list or the thumbnail row.
You can compare them to HTML tags which tell the browser how the content should be displayed.

Tags for "tagging" are labels, keywords, textual markers which can be used to group similar content. They work with text pages as well as with images.
You can see them as categories but more flexible because you can have tags as much as you want and assign many entries to one single tag. Tags give a very special view on a content which is said to be more intuitive.

Limit the number of thumbs per row in archive page

You cannot limit the number of thumbs per row by a simple setting, you have to do this in your CSS style sheet.
There is a <DIV> containing the thumbnails on archive page. In most templates it has the id="thumbnails".
Now set the width of #thumbnails in your CSS style sheet accordingly:
If you use a thumbnail width of 120px and want to show 5 thumbnails in a row, this is 600px.
If there is a margin or space around each thumbnail, you have to calculate this as well. Supposing each thumb has a h-space of 5, you have to add 50px (10px for each of the thumbnails).
So set the width of your thumbnails DIV to 650px, better 700px to take account of some borders or paddings and you are done.

Showing more than two languages to switch

You can give a link to any page in your blog and add "lang=xx" to the URL to switch to any language (provided there are language files and templates for that language).
The xx part is the language abbreviation, see here for more information.

You can use the tag <LANGUAGE=xx> on the start page for that.


Page last modified on November 07, 2007, at 11:57 PM