Pixelpost

Authentic Photoblog Flavour

TemplateTags /

<IMAGE_CATEGORY_PAGED>

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
    when using the paged archive addon.

Examples:

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

<IMAGE_CATEGORY_PAGED>

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&amp;pagenum=1">[default]</a> &nbsp;<a href="index.php?x=browse&amp;category=2&amp;pagenum=1">[nikon]</a> &nbsp;<a href="index.php?x=browse&amp;category=3&amp;pagenum=1">[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:";

PagedArchiveAddonTags
<< <TAG_IMG_LIST_KEYWORDS> | TemplateTags | <CATEGORY_LINKS_AS_LIST_PAGED> >>


Page last modified on November 06, 2007, at 01:40 PM