问题:
TAG插件使用伪静态以后列表分页提示此标签没有设置urlrule参数。添加urlrule=[page]以后出现无法访问。
伪静态规则:
"tags\/(.+)" => "index.php?s=tag&name=$1", // tag插件 "tags\/([a-z]+)\/([0-9]+)" => 'index.php?s=tag&name=$1&page=$2',
代码:
-
{cache name=module-content return=c}
{related module=$c.dirname field=title,url,thumb,description tag=$tag.tags page=1 urlrule=[page] pagesize=10}
- {/related} {/cache}
答案:
不行,tag详情页面没有分页功能,例如这样的 https://www.xunruicms.com/tag/biaoqian.html
回复@迅睿框架技术-刘和平
但是动态的URL就可以访问。/index.php?s=tag&name=lihun&page=3 不同页面列表内容也在变化。
因为插件没支持这种分页,所以你加了数据是不会便的
回复@迅睿框架技术-刘和平 这种没办法伪静态的吗?不能的话就暂时这样部分页