Pixelpost

Authentic Photoblog Flavour

TemplateTags /

<IMAGE_CATEGORY>

Tag Function:

  • Displays the categories that the current image is assigned to.

Main Usage:

  • Used within image_template.html to dynamically recall and display the current images assigned categories.

Examples:

In your image template, you can use the tag like this:

<IMAGE_CATEGORY>

Sample Output:

Using the code above will generate the following when the template is run:

Categories:  <a href="index.php?x=browse&amp;category=1">[default]</a> &nbsp;<a href="index.php?x=browse&amp;category=2">[nikon]</a> &nbsp;<a href="index.php?x=browse&amp;category=3">[nature]</a> &nbsp;

Sample Outcome:

Using the output above will generate the following when the template is run:

Categories: [default] [nikon] [nature]

Language Variable:

The output of this template tag is definable via your language file:

lang-english.php
$lang_category_singular  =  "Category:";
$lang_category_plural    =  "Categories:";

ImageRelatedTags
<< <IMAGE_HEIGHT> | TemplateTags | <IMAGE_THUMBNAIL> >>


Page last modified on November 06, 2007, at 10:54 PM