Demonstration of CategorySearch

MT > CategorySearch

HTML source

<MTTopLevelCategories>
<MTSetVarBlock name="tcid"><MTCategoryID></MTSetVarBlock>
<h4><MTCategoryLabel></h4>
<div>

<div>
<MTCategorySearchLink type="relative" set="$tcid" op="clear" text="ignore" >
<MTIf name="searching">
<MTIf name="selected">
<span>All</span>
<MTElseIf name="count">
<a href="<MTVar name="url">">All(<MTVar name="count">)</a>
<MTElse>
All(<MTVar name="count">)
</MTIf>
</MTIf>
</MTCategorySearchLink>
</div>

<MTSubCategories>
<div>
<MTSetVarBlock name="clabel"><MTCategoryLabel></MTSetVarBlock>
<MTCategorySearchLink type="relative" set="$tcid" value="$clabel" op="replace" text="ignore" >
<MTIf name="selected">
<span><MTCategoryLabel></span>
<MTElseIf name="count">
<a href="<MTVar name="url">"><MTCategoryLabel>(<MTVar name="count">)</a>
<MTElse>
<MTCategoryLabel>(<MTVar name="count">)
</MTIf>
</MTCategorySearchLink>
</div>
</MTSubCategories>

</div>
</MTTopLevelCategories>

Leave a Reply