三种方式获取织梦文章body的内容
{dede:sql sql='Select body from `dede_addonarticle` where aid=146'} [field:body/] {/dede:sql}
{dede:arclist typeid='49' idlist='146' addfields='body' channelid='1' } <section class="recommend"> <header class="header"> <h2><a href="[field:arcurl/]">[field:title/]</a></h2> <a href="[field:arcurl/]" class="more" title="更多...">more</a> </header> <div class="content"> [field:body/] </div> </section> {/dede:arclist}
{dede:arclist typeid='48' limit='0,10'} <li><time class="date">[field:id runphp='yes'] $aid = @me; $row = $GLOBALS['dsql']->GetOne("Select activitydate From `dede_addonarticle20` where aid='$aid' "); @me = "{$row['activitydate']}"; [/field:id]</time><a href="[field:arcurl/]" title="查看详情">[field:title/]</a></li> {/dede:arclist}
新闻热点
疑难解答