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>
后臺更新主頁后即可得到如下所示的結果: