Pbootcms网站如何调用TAG标签

2022-7-8 15:43

 一、在内容页面代码中添加以下代码即可:
<!--下一行-->
<br/>
<!--TAG文字属性-->
<style type="text/css">
.STYLE1 {
color: #17a2b8;
font-size: 16px;
        font-weight: bold;
}
</style>
<span class="STYLE1">TAGS:&nbsp;&nbsp;</span> 
<!--调用标签代码如下-->
<span style="font-size:14px;">{pboot:tags id={content:id}}
  <a href="[tags:link]">[tags:text]</a>
{/pboot:tags}</span>

二、在列表页面中添加以下代码即可调用:
<!--下一行-->
<br/>
<!--TAG文字属性-->
<style type="text/css">
.STYLE1 {
color: #17a2b8;
font-size: 16px;
        font-weight: bold;
}
</style>
<span class="STYLE1">TAGS:&nbsp;&nbsp;</span> 
<!--调用标签代码如下,scode的*值(必填)为相对应的列表编码-->
{pboot:tags scode=*}
&nbsp;&nbsp;<a href="[tags:link]">[tags:text]</a>
{/pboot:tags}
关注公众号

相关侵权、举报、投诉及建议等,请发 E-mail:admin@discuz.vip

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|蜀ICP备2020035322号-1|川公网安备 51010702002244号

关注公众号
QQ客服返回顶部