其实评论很多时候可以增加客户的粘度!最近一直有朋友问我siteserver模版首页怎么调用评论列表,我说不好意思,我没做过。用了siteserver将近2年了,很惭愧,最近做这个网站,想把评论调到首页,就专心研究了一下。现在终于研究出来了,在这里和大家分享一下:siteserver模板首页如何调用评论的方法
在这里分两种情况,一是栏目页、内容页,二是首页。
栏目页、内容页很简单:
<stl:Contents channelIndex=”微牛博文” pageNum=”10” columns=”1” layout=”None” width=”100%” border=”0” cellspacing=”0” scope=”all”>
<stl:comments isDisplayIfEmpty=”false”>
<li><a href=”#”>
<stl:comment type=”UserName”></stl:comment> 于 <stl:comment type=”AddDate”></stl:comment>评论<stl:content type=”title” ></stl:content>道:<br />
<stl:comment type=”Content”></stl:comment> </a>
</li>
</stl:comments>
首页需要加一个<stl:dynamic>,以下为:
<stl:dynamic>
<stl:Contents channelIndex=”微牛博文” pageNum=”10” columns=”1” layout=”None” width=”100%” border=”0” cellspacing=”0” scope=”all”>
<stl:comments isDisplayIfEmpty=”false”>
<li><a href=”#”>
<stl:comment type=”UserName”></stl:comment> 于 <stl:comment type=”AddDate”></stl:comment>评论<stl:content type=”title” ></stl:content>道:<br />
<stl:comment type=”Content”></stl:comment> </a>
</li>
</stl:comments>
</stl:dynamic>
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。