dede中当前栏目选择技巧及注意事项
先直接看代码
{dede:channel type='son' row='8' current}
<li ><a target="_parent" href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
current
这个不陌生,需要注意的是 channel标签里面 不能有typeid参数,
如果指定了只调用哪个栏目或者哪个栏目的子栏目。 当前应用样式就会失效。
所以 channel如果要 应用当前选中的栏目的样式 不能给typeid 只能 type 参数选项。
{dede:channel type='son' row='8' current}
<li ><a target="_parent" href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
current
这个不陌生,需要注意的是 channel标签里面 不能有typeid参数,
如果指定了只调用哪个栏目或者哪个栏目的子栏目。 当前应用样式就会失效。
所以 channel如果要 应用当前选中的栏目的样式 不能给typeid 只能 type 参数选项。
文章版权声明:除非注明,否则均为奥多云原创文章,转载或复制请以超链接形式并注明出处。




还没有评论,来说两句吧...