76

destoon6.0标签调用自己整理笔记-68喜科技-51CTO博客

 6 years ago
source link: http://blog.51cto.com/11024720/2071320
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

share_default.jpg

68喜科技 > 正文

destoon6.0标签调用自己整理笔记

{items}调用栏目下内容总数,也适合搜索用
{$CAT[catname]}当前栏目名称

获取资讯栏目导航

<!--{php $tags=tag("table=category&condition=moduleid=21 and parentid=0&pagesize=13&order=listorder,catid&template=null");}-->  {loop $tags $i $t}                       <li><a href="{$MOD[linkurl]}{$t[linkurl]}">{$t[catname]}</a></li>  {/loop}  

最新供应

<!--{php $tags=tag("moduleid=5&table=sell_5&condition=status=3&areaid=$cityid&pagesize=6&order=edittime desc&time=addtime&template=null");}-->                  {loop $tags $k $t}                              <LI><A href="{$t[linkurl]}" target=_blank>{dsubstr($t[title], 36)}</A></LI>                   {/loop}  

当前分类下的所有分类

//$CAT[parentid]当前分类的父级id  $moduleid前模型id  {php $sub = get_maincat($CAT[parentid], $moduleid, 1);}   <ul>  {loop $sub $i $k}  <li><a href="{$k[linkurl]}">{$k[catname]} {$i}</a></li>  {/loop}  </ul>  

当前分类的所有同父级分类

<!--{php $tags=tag("table=category&condition=moduleid=7 and catid=$catid&showcat=1&order=catid asc&template=null");}-->  {$r[parentid]}  {loop $tags $r}   <!--{php $tags=tag("table=category&condition=moduleid=7 and parentid=".$r[parentid]."&showcat=1&order=catid asc&template=null");}-->                {loop $tags $t}               <li><span>|</span><a href="{$MOD[linkurl]}{$t[linkurl]}" target="_blank">{$t[catname]}</a></li>               {/loop}  {/loop}  

最新加入的企业

<!--{php $tags=tag("moduleid=4&condition=groupid>5 and thumb<>''&areaid=$cityid&pagesize=7&order=userid desc&template=null")}-->              {loop $tags $t}                                               <li><a href="{userurl($t[username])}" target="_blank" >{dsubstr($t[company], 28)}</a></li>              {/loop}   

自己测试学习时候搭建的一个


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK