迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
联系官方销售客服
1835022288
028-61286886
从其他cms转过来的,他们有个插件是相关文档调用,可以设置根据标题调用相关文章
迅睿有没有这个功能
我根据关键词和tag调用的不太准确,所以想实现这个
<?php $sql=url_encode("title LIKE '%我爱看电视%'");?> {module module=news catid=1 where=$sql order=updatetime num=4}
{php $ks=dr_get_keywords($title);} 这个需要安装官方的分词插件 {related module=news tag=$ks} <a href="{$t.url}">{$t.title}</a> {/related}
{"name":"关联词","fieldname":"guanlianci","fieldtype":"Text","isedit":"1","ismain":"1","issystem":"0","ismember":"1","issearch":"0","disabled":"0","setting":{"option":{"fieldtype":"","fieldlength":"","value":"","width":"","css":""},"validate":{"xss":"1","required":"0","pattern":"","errortips":"","check":"","filter":"","tips":"","formattr":""},"is_right":"0"},"displayorder":"0"}
{related module=article tag=$guanlianci num=10} <a href="{$t.url}">{$t.title}</a> {/related}