<div class="listbox"> <jcms:classloop channelid="{$ChannelId}" depth="1" repeatnum="0">
<dl>
<dt><span class="title"><a href="{$ClassLink}">{$ClassName}</a></span> <span class="more"> <a href="{$ClassLink}">更多 »</a></span> </dt>
<dd> <jcms:contentloop channelid="{$ChannelId}" classid="{$ClassId}" repeatnum="8" fields="[title],[tcolor],[adddate]">
<ul>
<#foreach>
<li><a href="$_{url}" title="$_{title}" style="color
{field.tcolor}">${field.title}</a><span>${cdatestring(field.adddate,"yy-MM-dd")}</span></li>
<#/foreach>
</ul>
</jcms:contentloop> </dd>
</dl>
</jcms:classloop>
这段代码的ChannelId和ClassId 是怎么获取的,jcms:contentloop 必须套在jcms:classloop 下边吗 为什么直接
<jcms:contentloop channelid="{$ChannelId}" classid="{$ClassId}" repeatnum="8" fields="[title],[tcolor],[adddate]">
<ul>
<#foreach>
<li><a href="$_{url}" title="$_{title}" style="color
{field.tcolor}">${field.title}</a><span>${cdatestring(field.adddate,"yy-MM-dd")}</span></li>
<#/foreach>
</ul>
</jcms:contentloop>这样写就解析不了classid