
使用神盾小插件-标签云,网站前台访问http://***.com/p/kwtags-index-index.html无法调出(正确读取)文章,请问要如何修改才能正确调出文章?
/template/index_style/default/plugins/kwtags/index/pc_index.htm模板代码如下
{extend name="$index_style_layout" /}
{block name="body_content"}
<style type="text/css">
.wrap{width:100%;}
.wrap ul,.wrap li{margin:0;padding:0;}
.tags-index{width:1200px;padding:15px 25px;margin:0 auto;}
.tags-index .tagbox{margin-bottom:25px;}
.tags-index h1{font-size:1.5rem;font-weight:600;color:#35C4B8;}
.tags-index ul{margin-left:40px;}
.tags-index ul li{list-style:none;}
.btags{display:flex;flex-wrap:wrap;}
.btags li{margin:5px 8px;}
.btags li a{padding:5px 12px;background-color:#008AD9;color:#FFF;border-radius:8px;}
</style>
<div class="wrap">
<div class="tags-index">
{volist name="$tagsort" id="vo"}
{if(fun("Tagfun@getSortTagnum",$vo['id']))}
<div class="tagbox">
<h1>{$vo.name}</h1>
<ul class="btags">
{volist name=":fun('Tagfun@getSortData',$vo['id'])" id="vt"}
<li><a href="{:purl('kwtags/taglist/index',['tid' => $vt['id']])}" target="_blank">
{$vt.tagname}
</a></li>
{/volist}
</ul>
</div>
{/if}
{/volist}
</div>
</div>
{/block}首先,这个插件没有前台,只是分类,index只是之前有用户需要分类,做了一个分类汇总。 文章调用和标签本身没有关系,如果是想调用标签相关的文章,后台文档有相关说明,和cms里面调用是一样的 ,比如:

如果是单纯的调用文章,那就用齐博的标签qb:tag即可
标签云只有taglist模板,是针对单独标签的数据展示template\index_style\default\plugins\kwtags\taglist\pc_index.htm
至于template\index_style\default\plugins\kwtags\index\index.htm 此处只是一个分类汇总,没有首页一说,数据调用和独立页一样,qb:tag即可,没有特定的方法