美文网首页
eyoucms 当前栏目如何调用所有层级下的栏目?

eyoucms 当前栏目如何调用所有层级下的栏目?

作者: 西祠_fa33 | 来源:发表于2019-03-12 08:44 被阅读0次

易优cms在当前栏目下如何调用所有层级下的栏目呢?下面代码即可实现。

{eyou:channel type='first' id='field' currentstyle='on'}

 <li><a href="{$field.typeurl}" class="{$field.currentstyle}">{$field.typename}</a></li>

{/eyou:channel}

type='first'   first表示当前栏目ID的最顶级栏目下的所有层级栏目集合

转自:https://www.eyoucms.com/help/eyoujq/1285.html

相关文章

网友评论

      本文标题:eyoucms 当前栏目如何调用所有层级下的栏目?

      本文链接:https://www.haomeiwen.com/subject/xwgwpqtx.html