{dede:type} <a href="[field:typelink /]">[field:typename /]</a> {/dede:type} (二)调用父栏目、子栏目、平行栏目名称 {dede:type} [field:id runphp=yes] $tsql = new DedeSql(false); $typelink2 = ''; $tsql->SetQuery("Select i.typedir,i.typename From #@__arctype t left join #@__arctype i on i.id=t.reid where t.id='@me'"); $tsql->Execute('t'); while($row = $tsql->GetArray('t',MYSQL_ASSOC)) { $typelink2 .= $row['typename']; } @me=$typelink2; [/field:id] {/dede:type} (三)循环调用平行栏目名称 {dede:channel type='son' currentstyle=" <li><a href='~typelink~' class='thisclass'>~typename~</a></li> "} <li><a href='[field:typeurl/]'>[field:typename/]</a></li> {/dede:channel} /*type有三个可选,son,top,self分别对应调用子栏目,顶级栏目,平行栏目*/ (四)dede 文章标题标签调用:{dede:field name="title"/} (五)利用list标签将list列表进行N行N列显示 {dede:list pagesize='10'} <div style="float:left;47%;" class="h"> <div class="sub-clst" align="left"><a href="[field:arcurl/]" class="title">[field:title/]</a></div> <div style="50%;float:left;"> <div style="50%;float:left;"> [field:array runphp='yes']@me = (empty(@me['litpic']) ? "" : " <a href='{@me['arcurl']}' class='preview'><img src='{@me['litpic']}'/></a>"); [/field:array] </div> </div> <div style="50%;float:left;"> <div style="float:left;margin-top:60px;"> <strong>随时温暖</strong> <strong>全家悠享</strong> </div> <div class="detail"> <a href="[field:arcurl/]">了解详情</a> </div> </div> </div> {/dede:list}