主题 : @cms.ChnlList
级别: 白丁
UID: 10104
积分:0 加为好友
威望: 0 精华: 0
主题:0 回复:0
注册时间:2010-08-18
在线时长:0
1#   发表于:2010-09-21 10:33:39  IP:116.52.*.*
head.html里面的
[@cms.ChnlList id='' inner='1';c]<li class="thisclass"><a href="${c.url}">${c.name}</a></li>[/@cms.ChnlList]

action_cms.ftl里面的
<#macro ChnlList id=chnl.id sysType='article' orderBy='0' isDisplay='1' hasContent='0'
linkClass='' linkTarget='0'
isPage='0' count='20' firstResult='0' pageNo=pageNo
style='1' inner='0' isLoop='1' cssClass='' cssStyle='' showLinkStyle='1'
sysTpl='1' sysContent='0' userContent='' sysPage='0' userPage='' upSolution='' upWebRes='' pageClass='' pageStyle='' custom=[]>
<#if inner=='0'>
<#local customs = ''>
<#list custom as s>
<#local customs = customs+s>
<#if s_has_next><#local customs = customs+'|'></#if>
</#list>
<@s.action name='ChnlList' namespace='/jeecms/tag/cms' executeResult='true'
chnlId=id sysType=sysType orderBy=orderBy isDisplay=isDisplay hasContent=hasContent
linkClass=linkClass linkTarget=linkTarget
isPage=isPage count=count firstResult=firstResult pageNo=pageNo
style=style cssClass=cssClass cssStyle=cssStyle showLinkStyle=showLinkStyle
sysTpl=sysTpl sysContent=sysContent userContent=userContent sysPage=sysPage userPage=userPage pageClass=pageClass pageStyle=pageStyle customs=customs
/>
<#else>
<@s.action name='ChnlListInner' namespace='/jeecms/tag/cms' executeResult='false'
chnlId=id sysType=sysType orderBy=orderBy isDisplay=isDisplay hasContent=hasContent
isPage=isPage count=count firstResult=firstResult pageNo=pageNo
/>
<#if isLoop=='1'>
   <#list n_pagination.list as item>
<#nested item,item_index,item_has_next/>
</#list>
<#else>
<#nested n_pagination/>
</#if>
</#if>
</#macro>



c.name是在哪里定义取出来的,c是@cms.ChnlList的别名吧,但定义里面也没有name和url啊
1 共1页