在使用灵动标签时填写调用标题图片为1时调不出来必须使用sql语句
2019-07-05 站长 站长日志
1.当前栏目调用带标题图片的5条文章 (红色为当前栏目,蓝色当前根据当前id判断最近)
[e:loop={"select * from phome_ecms_news where classid ='$GLOBALS[navclassid]' and id <'$GLOBALS[id]' and titlepic<>'' order by id desc limit 5",0,24,0}]
2.调栏目为2带标题图片的5条文章
[e:loop={"select * from phome_ecms_news where classid =2 and titlepic<>'' order by id desc limit 5",0,24,0}]
abc
[e:loop={"select * from phome_ecms_news where classid ='$GLOBALS[navclassid]' and id <'$GLOBALS[id]' and titlepic<>'' order by id desc limit 5",0,24,0}]
2.调栏目为2带标题图片的5条文章
[e:loop={"select * from phome_ecms_news where classid =2 and titlepic<>'' order by id desc limit 5",0,24,0}]
abc