易優(yōu)cms篩選調(diào)用其他頻道模型字段可以采用php標(biāo)簽來(lái)進(jìn)行調(diào)用,具體代碼如下:
{eyou:php}
$sql = “select a.title,a.aid,b.tuanjianleixing FROM ey_archives as a,ey_fangan_content as b where a.aid=b.aid and is_recom=1 order by id desc limit 6”;
$tmp_list = db()->query($sql);
foreach ($tmp_list as $_k => $_v) {
echo “欄目ID:”.$_v[‘tuanjianleixing’];
echo ” — “;
echo “標(biāo)題:”.$_v[‘title’];
echo ” — “;
echo “標(biāo)題/index.php?m=home&c=View&a=index&aid=”.$_v[‘a(chǎn)id’];
echo “
”;
}
{/eyou:php}
版權(quán)聲明: 本站資源均來(lái)自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 易優(yōu)eyoucms篩選字段調(diào)用其他頻道數(shù)據(jù)字段的方法