List categories and objects assigned to them
Plugin Category
This plugin will display a list of categories and objects assigned to those categories. Options let you decide what level of category, what types of objects to list, how they should be sorted, whether to show subcategories, and whether multiple category displays should be split.Table of contents
Usage
Below is an example showing the syntax:{CATEGORY(id=1+2+3, types=article+blog+faq+fgal+forum+igal+newsletter+ event+poll+quiz+survey+tracker+wiki+img, sort=name_asc, sub=y, split=y, and=n)}{CATEGORY}| Parameter | Accepted Values | Effect | Since |
|---|---|---|---|
| id | list of IDs separated by + or the string 'current' | all the objects that belongs to at least one of these categories will be listed | |
| types | list of object types separated by + (or * for all types) | a type can be article or blog or faq or fgal or forum or igal or newsletter or poll or quiz or survey or tracker or wiki or img - * means all | |
| sort | type, created, name or hits followed by _ and asc or desc (default: name_asc) | example: created_asc will sort by ascending creation date | |
| sub | y or n | display items of subcategories. (default: y) | |
| split | y or n | when displaying multiple categories, whether they should be split or not. (default: y) | |
| and | y or n | if set to y, only objects in all of the categories listed will shown. (default: n) | |
| showname | y or n | Show the name. (default: y) | tw >= 5.0 |
| showdescription | y or n | Show description. (default: n) | tw >=5.0 |
| showtype | y or n | Show type. (default: y) | tw >=5.0 |
How to Determine a Category ID (without guessing)
Browse the categories (see Category User), hover over a category item, and look at the browser's status bar and note the ID number.Examples
Sort first on imageId and then name
{CATEGORY(id=1, types=img, sort="itemId_asc,name_asc")}{CATEGORY}Sort first on articleId and then name
{CATEGORY(id=1, types=article, sort="itemId_asc,name_asc")}{CATEGORY}On this site
This code,^{CATEGORY(id=1,sub=n)}{CATEGORY}^Would produce:
Category: Status
- wiki page:
Wrong
{CATEGORY(id=>[2]types=>faq)}{CATEGORY}
Correct
{CATEGORY(id=2,types=faq+blog+article)}{CATEGORY}
{CATEGORY(types=wiki,sort=created_asc)}{CATEGORY}
{CATEGORY(split=y)}{CATEGORY}
{CATEGORY()}{CATEGORY}
Contributors to this page: lindon
,
miarrobino
,
sylvie
,
SEWilco
,
Xavi
and
system
.
Page last modified on Tuesday 02 March, 2010 04:19:06 UTC by lindon
.
Sidebar
Featured links
Last changes
Freetags editor
Sidebar
To register
To have an account at this site, please register at Tikiwiki.org
, and then use that user name and password to log in here.
