Object categories

Available in

Example

Following example creates link to category using category name as anchor text.

<a href="{category.get_href}"><vte:value select="{category.category_name}" /></a>

Params

Parameter name Value Description
id integer category id
category_name string category name
parent_cat integer parent category id (0 - root)
order_num integer category order index
article_num integer number of articles to display on category view
template string custom template
css string custom css
view_subcat integer show category in navigation (name bug)
redirect string redirect link
public string public status
0 - public
1 - members only
2 - premium members only
image string category image filename
sefriendly string SE friendly name
article_template string template for articles in this category
subcategories array List of subcategories
get_id integer Returns category id
get_category_name string Returns category name
get_parent_cat integer Returns category parent id
get_order_num integer Returns order number
get_article_num integer Returns number of articles to display
get_template string Returns custom template (implements inheritance logic)
get_css string Returns custom theme (implements inheritance logic)
get_view_subcat integer
get_redirect string Returns redirect link
get_public string Returns category access status
get_image string Returns category image filename
get_sefriendly string Returns category SE friendly name
get_article_template string Returns custom article template (implements inheritance logic)
get_breadcrumb array Returns breadcrumb list of categories (root up)
get_breadcrumb_href string Returns relative URL to category (used by Articles class)
get_href string Returns relative URL to category first page
get_keywords string Returns category meta keywords
get_description string Returns category meta description
 
devdoc/objects/categories.txt · Last modified: 2008/11/12 10:21 by boccio
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki