V6.5在原來所有信息調用標簽基礎上增加了兩個標簽參數:“附加SQL條件”和“顯示排序”。
以靈動標簽為例,6.5版標簽語法為:
[e:loop={欄目ID/專題ID,顯示條數,操作類型,只顯示有標題圖片,附加SQL條件,顯示排序}]模板代碼內容[/e:loop]
例子:調用標題包含“cms”的新聞[e:loop={"select * from phome_ecms_news where title like '%cms%' and checked=1 order by newstime desc limit 10",10,24,0}]" target="_blank"><?=$bqr[title]?>
[/e:loop]
而6.5版本用下面就可以實現上面效果:[e:loop={'news',10,18,0,"title like '%cms%'"}]" target="_blank"><?=$bqr[title]?>
[/e:loop]
[e:loop={"select * from phome_ecms_news where checked=1 order by diggtop desc limit 10",10,24,0}]" target="_blank"><?=$bqr[title]?>
[/e:loop]
[e:loop={'news',10,18,0,'','diggtop desc'}]" target="_blank"><?=$bqr[title]?>
[/e:loop]
新聞熱點
疑難解答