Pixelpost

Authentic Photoblog Flavour

TemplateTags /

<BROWSE_CATEGORIES>

Tag Function:

  • Displays a drop-down list of all categories.

Main Usage:

  • Used within browse_template.html to dynamically recall and load a drop-down list of all categories.

Examples:

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

<BROWSE_CATEGORIES>

Sample Output:

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

<select name="browse" onchange="self.location.href=this.options[this.selectedIndex].value;">
  <option value="">Select Category</option>
  <option value="index.php?x=browse&amp;category=">All</option>
  <option value="index.php?x=browse&amp;category=1">Default</option>
  <option value="index.php?x=browse&amp;category=3">Nikon</option>
  <option value="index.php?x=browse&amp;category=2">Nature</option>
</select>

Language Variable:

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

lang-english.php
$lang_browse_select_category  =  "Select Category";
$lang_browse_all              =  "All";

ArchiveRelatedTags
<< <THUMBNAILS> | TemplateTags | <CATEGORY_LINKS_AS_LIST> >>


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