帝国cms调用关键字相同的文章灵动标签写法

COS、CDN

1. 调用关键字相同的文章灵动标签写法

  • 基本写法:
     
     
    [e:loop={'news',10,3,0,"keyboard like '%$navinfor[keyboard]%' and id<>$navinfor[id]"}] <a href="<?=$bqsr['titleurl']?>" target="_blank"><?=esub($bqr[title],24)?></a> [/e:loop]
  • 随机调用:
     
     
    [e:loop={'news',10,3,0,"keyboard like '%$navinfor[keyboard]%' and id<>$navinfor[id]",'rand() desc'}] <a href="<?=$bqsr['titleurl']?>" target="_blank"><?=esub($bqr[title],24)?></a> [/e:loop]
COS、CDN
热门