POST TIME:2021-05-14 14:49
本期讲解【Groupthread 标记】此标记用于获取圈子最新发表的主题,适用范围:适用于非扩展模块所有模板.
此标签为DEDE5新添加的标签,主要和【Group 标记】一起用来调用圈子模块的相关数据的.
一: 使用说明
二: 测试实例
本例为在主页模板文件中测试【Groupthread 标记】,将下列代码加入主页模板文件中,代码如下所示:
<div class="leftlist margintop">
<div class="ptitle"><a href="#">圈子资讯</a></div>
<div style="width:668px; border:1px solid #ddd; padding-bottom:3px; clear:both;">
<dl style="width:666px; margin:1px auto; overflow:hidden;">
<dl style="width:400px; margin:10px 0 0 9px; float:left; height:280px; text-align:center;
line-height:20xp;">
<h1 style="font-size:15px; border-bottom:1px dashed #f60;">groupthread标签的使用
</h1><br>
{dede:groupthread row='5' gid='0'}
<dt style="float:left; line-height:28px;">[<b><a href="[field:groupurl/]"
target="_blank">[field:groupname/]</a></b>]<span style="margin-left:8px;"><a
href="[field:url/]">[field:subject/]</a></span> ([field:lastpost function="GetDateMK('@me')"/])</dt>
{/dede:groupthread}
</dl>
</dl>
</div>
后台更新主页后即可得到如下所示的结果:
