五指cms标签说明汇总

  

<强> 1,栏目列表标签

<>之前只有一级导航:
 {wz: content  action=袄啾稹?cid=" 0 ",页大?" 100 ",订单=皊ort  ASC”} & lt; li> & lt; a  href=" https://www.yisu.com/zixun/{WEBURL}”在首页& lt;/a> & lt;/li>
  {loop  rs 美元;$ r}
  ,,{if  $ r (' ismenu ']} & lt; li  {if  top_categoryid==r美元[cid的]}类=盎钤尽眥/如果}祝辞& lt; a  href=" https://www.yisu.com/zixun/{$ r (“url”)}”在{$ r(“名字”)}& lt;/a> & lt;/li>{/如果}
  {/循环}
  {/wz} 

,含有2级导航:

 {wz: content  action=袄啾稹?页大?" 100 ",订单=皊ort  ASC”}
  ,,,{loop  rs 美元;$ r}
  ,,,{if  $ r (“pid”)==0,,,, $ r (“ismenu”)}
  ,,,{$ r(“名字”)}
  ,,,,,,,{if  $ r(孩子的)}
  ,,,,,,,{loop  rs 美元;$ rn}
  ,,,,,,,,,,,{if  $ rn (“pid”)==$ r(的cid)} {$ rn['名字']}{/如果}
  ,,,,,,,,,,,,,,,{/循环}
  ,,,,,,,{/如果}
  ,,,,
  ,,,{/如果}
  ,,,{/循环}
  ,,,{/wz} 
<>以前频道(大栏目),子栏目列表
 {loop  sub_categorys 美元;$猫}& lt; li> & lt; a  href=" https://www.yisu.com/zixun/{$猫(“url”)}”在{$猫['名字']}& lt;/a> & lt;/li>
  {/循环}
, 

频道(大栏目),子栏目列表,最终栏目调用相同的父级栏目列表:

常用于单网页:关于我们/联系方式等

 {wz: content  action=袄啾稹?cid=" $ elasticid ",页大?" 100 ",订单=皊ort  ASC”}
  ,,,,,{loop  rs 美元;$ r}
  ,,,,{if  $ r (' ismenu ']} {$ r(“名字”)}{/如果}
  ,,,,,{/循环}
  {/wz} 

其中:

 elasticid 美元;是一个动态变量。如果当前栏目有子分类,那么显示子分类。如果没有,则显示上级同级分类。
  
  仅调用当前栏目时:将,elasticid 美元;改为,美元cid 

<强>,2,内容列表标签

<>以前基本用法:只调用主表数据以前 <>以前{wz: content  action=扒宓ァ?页面=" $页面”,页大??”,订单=皊ort  DESC id  DESC”, cid=" $ cid ", urlrule=" $ urlrule "}   {loop  rs 美元;$ r}      ,,,{safe_htm ($ r['标题'])}   ,,,{safe_htm ($ r['说'])}。      {/循环}   {/wz}

分页代码:

{$页面}
参数说明页面分页:默认未变量美元页面,不存在分页时,删除改变量,提高性能.pagesize每页显示条数的顺序排序方式,一排序字段,id,主键,addtime添加时间cid栏目idurlrule栏目url规则

,

调用主表和附属表数据:

 {wz: content  action=扒宓ァ?页面=" $页面”,页大??”,订单=皊ort  DESC id  DESC”, cid=" $ cid ", modelid=" $ modelid ", moredata=" https://www.yisu.com/zixun/1 ", urlrule=" $ urlrule "}
  {loop  rs 美元;$ r}
  
  {/循环}
  {/wz} 

增加了参数:modelid=" $ modelid " moredata=" https://www.yisu.com/zixun/1 "

分页大于指定数量后显示:

 {if  $ this→db→number> 5} & lt; nav 祝辞& lt; ul 类=胺忠场北?
  {$页面}& lt;/ul> & lt;/nav>
  {/如果}

<强>,3,内容列表标签

<>以前基本用法:只调用主表数据以前 <>以前{wz: content  action=扒宓ァ?页面=" $页面”,页大??”,订单=皊ort  DESC id  DESC”, cid=" $ cid ", urlrule=" $ urlrule "}   {loop  rs 美元;$ r}      ,,,{safe_htm ($ r['标题'])}   ,,,{safe_htm ($ r['说'])}。      {/循环}   {/wz}

分页代码:

{$页面}
参数说明页面分页:默认未变量美元页面,不存在分页时,删除改变量,提高性能.pagesize每页显示条数的顺序排序方式,一排序字段,id,主键,addtime添加时间cid栏目idurlrule栏目url规则

,

调用主表和附属表数据:

 {wz: content  action=扒宓ァ?页面=" $页面”,页大??”,订单=皊ort  DESC id  DESC”, cid=" $ cid ", modelid=" $ modelid ", moredata=" https://www.yisu.com/zixun/1 ", urlrule=" $ urlrule "}
  {loop  rs 美元;$ r}
  
  {/循环}
  {/wz} 

增加了参数:modelid=" $ modelid " moredata=" https://www.yisu.com/zixun/1 "

分页大于指定数量后显示:

 {if  $ this→db→number> 5} & lt; nav 祝辞& lt; ul 类=胺忠场北?
  {$页面}& lt;/ul> & lt;/nav>
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null
  null

五指cms标签说明汇总