Calling the current column classification and sub classification and class Three classification is commonly used in the program design, this article will detail the Destoon implementation calls the current column classification and sub classification and three-level classification methods. The specific actions are as follows:
The following invocation statement is provided in Destoon:
First-level category name:
Level two category name:
Level three category name:
A specific invocation example is as follows:
First, call the category name and link directly:
{Loop $maincat $i $m}<dl>
{php $child = get_maincat ($maincat, $CATEGORY, 1);}
<dt><a href= "{$MOD [linkurl]}{$m [Linkurl]}" rel= "external nofollow" rel= "external nofollow" >{$m [CatName] }</a></dt>
{php $childs = get_maincat ($m [catid], $CATEGORY, 1);}
{Loop $childs $i $c}<dd><a href= "{$MOD [linkurl]}{$c [Linkurl]}" rel= "external nofollow" rel= "external nofollow "Rel=" external nofollow >{$c [Catname]}</a></dd>{/loop}
</dl>{/loop}
Second, call the classification name and its latest article:
{Loop $maincat $i $m}
{php $child = get_maincat ($maincat, $CATEGORY, 1);} <div class= "hq01" > <div class= "hq-tt" > <p>
I hope the method described in this article will help you to destoon development.