帝国CMS灵动标签调用相关文章

来自:互联网
时间:2019-04-18
阅读:

标题包含关键字KCz免费资源网

①、比较粗糙的匹配,可能不太精确:title like '%$navinfor[keyboard]%' KCz免费资源网

②、精确的匹配,比较消耗资源:title regexp '(^|,)$navinfor[keyboard]($|,)'KCz免费资源网

关键字相同KCz免费资源网

①、比较粗糙的匹配,可能不太精确:keyboard like '%$navinfor[keyboard]%'KCz免费资源网

②、精确的匹配,比较消耗资源:keyboard regexp '(^|,)$navinfor[keyboard]($|,)'KCz免费资源网

格式1、KCz免费资源网

①、模糊匹配KCz免费资源网

[e:loop={"select *  from phome_ecms_news where title like '%$navinfor[keyboard]%' or keyboard like '%$navinfor[keyboard]%' order by id desc limit 10",0,24,0}]KCz免费资源网

[/e:loop]KCz免费资源网

②、精确的匹配KCz免费资源网

[e:loop={"select *  from phome_ecms_news where title regexp '(^|,)$navinfor[keyboard]($|,)' or keyboard regexp '(^|,)$navinfor[keyboard]($|,)' order by id desc limit 10",0,24,0}]KCz免费资源网

[/e:loop]KCz免费资源网

格式2、KCz免费资源网

①、模糊匹配KCz免费资源网

[e:loop={'news',10,3,0,"keyboard like '%$navinfor[keyboard]%' or title like '%$navinfor[keyboard]%'",''}]KCz免费资源网

[/e:loop]KCz免费资源网

KCz免费资源网

[e:loop={0,10,3,0,"keyboard like '%$navinfor[keyboard]%' or title like '%$navinfor[keyboard]%'",''}] KCz免费资源网

[/e:loop]KCz免费资源网

注意:在没有相关文章时,会调用最新的文章来替代空缺的位置KCz免费资源网

返回顶部
顶部