Tag reference of CategorySearch

MT > CategorySearch

Tags

<MTIfCategorySearch>

<MTUnlessCategorySearch>

block

When “CategorySearch” is used, output the contents.

Usage

<mt:IfCategorySearch>
<!-- When "CategorySearch" is used, output the contents. -->
</mt:IfCategorySearch>
block

Generating the link for the squeezing crowding of the category.

Usage

<MTSetVarBlock name="tcid"><!-- category id of top-level category. --></MTSetVarBlock>
<MTSetVarBlock name="clabel"><!-- category label of target category --></MTSetVarBlock>
<MTCategorySearchLink type="relative" set="$tcid" value="$clabel" op="replace" text="ignore" >
<MTIf name="selected">
<span><MTVar name="clabel"></span>
<MTElseIf name="count">
<a href="<MTVar name="url">"><MTVar name="clabel">(<MTVar name="count">)</a>
<MTElse>
<MTVar name="clabel">(<MTVar name="count">)
</MTIf>
</MTCategorySearchLink>
Variables

count
It is a number of entries that become a hit when this link is clicked.
selected
When the specified category has selected it, it become true.
searching
It becomes true when called with the search result template.
url
It is URL to narrow it.
Modifire

value=”category label”
the category label used with “op” is specified.
set=”set name”
A series of category set name that does exclusive specification is specified.
op=”replace | clear | add | remove”
A present search condition is operated as follows. (default: replace)

replace
The value of the category set is replaced with value.
clear
The specified category set is cleared.
add
Value is added to the specified category set.
remove
Value is deleted from the specified category set.
type=”relative | absolute”
Operation when the category sets other than set are specified for a present search condition is specified. (default: relative)
relative
The category sets other than set are left, and op is done to the value of set.
absolute
The category sets other than set are deleted, and the category set is assumed to be only set.
text=”ignore | mixed”
It is specified whether to use the text browsing together. (default: ignore)
limit=”N”
The search result is displayed and N matter is displayed on page 1.

<MTCategorySearchSets>

<MTCategorySearchSetsHeader>

<MTCategorySearchSetsFooter>

<MTCategorySearchCategories>

<MTCategorySearchCategoriesHeader>

<MTCategorySearchCategoriesFooter>

block

Output search condition.
Output categories that specified.

Usage

<mt:CategorySearchSets glue=" AND ">
<mt:CategorySearchSetsHeader>
Result of 
</mt:CategorySearchSetsHeader>
"<mt:CategoryLabel> &gt; <mt:CategorySearchCategories glue=" | "><mt:CategoryLabel></mt:CategorySearchCategories>"
</mt:CategorySearchSets>

Leave a Reply