Plugins : MTCategoryOfArchive 1.10 Jun 08 2003 | # | C:19

MTCategoryOfArchive 1.10

June 8, 2003 - updated February 8, 2006 (Download)

This plugin can be used in a Category Archive template to give you access to the archive’s category tags, such as MTCategoryID, MTCategoryDescription, etc.

  • MTCategoryOfArchiveVersion
    Returns the version of this plugin.
  • MTCategoryOfArchive
    Container tag that represents the category of the current category archive.
    Example: The following code displayes the category ID of the current category archive:
    <MTCategoryOfArchive><MTCategoryID></MTCategoryOfArchive>
  • MTIfCategoryOfArchive
    Conditional tag that is true if the specified category, or the current category (on a category listing, for example) is the same as the category of the current archive.
    • category=”CategoryLabel
      Specifies which category to compare against. If no category is specified, the current category (in a category listing, for example) is compared.
  • MTIfNotCategoryOfArchive
    Conditional tag that is true if the specified category, or the current category (on a category listing, for example) is different from the category of the current archive.
    • category=”CategoryLabel
      Specifies which category to compare against. If no category is specified, the current category (in a category listing, for example) is compared.
    Example:The following code, placed in an category archive template, will list links to all other categories, and the current category will be printed in bold:
    <MTCategories>
    <MTIfCategoryOfArchive>
    <b><$MTCategoryLabel$></b>
    </MTIfCategoryOfArchive>
    <MTIfNotCategoryOfArchive>
    <a href="<$MTCategoryArchiveLink$>"><$MTCategoryLabel$></a>
    </MTIfNotCategoryOfArchive>
    <br />
    </MTCategories>
    
Version History