遍历顶级栏目高亮:
{dede:channel type="top" col="1" currentstyle="<li class='active'><a href='~typelink~' ~rel~><span>~typename~</span></a></li>" } <li><a href='[field:typeurl/]' [field:rel/]><span>[field:typename/]</span></a></li> {/dede:channel}
织梦去掉网站版权信息后面的xxxx:
调用多个指定的顶级栏目导航:
{dede:channelartlist row='2' typeid='1,2这里输入多个指定的栏目ID' } <li><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></li> {/dede:channelartlist}
调用指定栏目标题:
{dede:arclist typeid='6' idlist='2'} <div class="tits">[field:title/]</div> {/dede:arclist}
<!--typeid是栏目id-->
<!--idlist是文章id-->
调用指定栏目文章内容:
{dede:arclist idlist='要调用文章的id' channelid='1' addfields='body'}
[field:body function='cn_substr(@me,330)'/]
{/dede:arclist}
新增字段调用:
{dede:arclist addfields='附加字段1,附加字段2,附加字段3' row='8' channelid='自定义模型id号'} [field:附加字段1/] - [field:附加字段2/] - [field:附加字段3/] <br /> {/dede:arclist} 比如刚刚我们添加字段jiage,调用方式就是: {dede:arclist addfields='jiage' row='8' channelid='1'} [field:jiage /] {/dede:arclist}