使用方法:解压文件到cmf框架插件目录并在后台进行安装
然后在要使用的文章列表页面body后加上钩子
<hook name="body_start">
并在钩子下方附加如下代码:
<php> app('request')->get('ids')==''?$where='':$where=[config('database.prefix')."portal_post.id"=>explode(",",app('request')->get('ids'))]; </php>
注:需在门户标签portal:article 添加where属性 (需删除页面原有where变量)
where="$where"
如图:
ThinkCMF模板插件交流群:550851374 ,领取阿里云1000通用代金券