1. 使用SQL
{dede:sql sql='Select body from `dede_addonarticle` where aid=146'}
[field:body/]
{/dede:sql}
2.使用arclist, 用idlist获取,aid 是没用的,在首页记得要获取typeid, 用addfields='body'来直接使用[field:body/]
{dede:arclist typeid='49' idlist='146' addfields='body' channelid='1' }
[field:title/]
[field:body/]
{/dede:arclist}
3.混搭
{dede:arclist typeid='48' limit='0,10'}
-
$aid = @me;
$row = $GLOBALS['dsql']->GetOne("Select activitydate From `dede_addonarticle20` where aid='$aid' ");
@me = "{$row['activitydate']}";
[/field:id][field:title/]
{/dede:arclist}