Tags標(biāo)簽可以在文章和商品模塊中使用,錄入內(nèi)容的時候,有個標(biāo)簽欄可以填寫,每個標(biāo)簽填完,回車Enter即可生成,提交才生效。
Tags標(biāo)簽可以作為替換文章內(nèi)容及添加URL功能使用,在Tags模塊中,可以對每個標(biāo)簽進(jìn)行填寫替換詞和對應(yīng)的跳轉(zhuǎn)鏈接。
Tags列表頁的鏈接是固定的
首頁或者其他頁面調(diào)用標(biāo)簽
{loop table="tags" isshow="1" limit="10" as="v"} 標(biāo)簽名:{$v['keywords']} 標(biāo)簽詳情鏈接:{fun U('tags/index',['tagname'=>$v['keywords']])} {/loop}
文章頁或者商品詳情頁調(diào)用tags
循環(huán)顯示相關(guān)tags鏈接
{foreach explode(',',$jz['tags']) as $s} {if($s)} <a href="{fun U('tags/index',['tagname'=>$s])}" class="badge badge-secondary mb-3">{$s}</a> {/if} {/foreach} {$jz['body']}