dedecms首页调用专题页描述和链接的方法

2017-04-13 14:26:49 dedecms
示例:

{dede:arclist  id=6 row=1  channelid="-1"  type="spec." }

<div class="record_product_description">

[field:array runphp='yes']

global $dsql;

@me =@me['id'];

$sql = "select t.description from addonspec a, archives t where a.aid=t.id and t.id=11";

$dsql->Execute('a',$sql);

$one = $dsql->GetArray('a');

@me =substr(Html2Text($one['description']),0,660);

[/field:array]...

</div>

<div class="record_more"><a href="[field:arcurl/]">[field:typename/]</a></div>

{/dede:arclist}

解析:

如果需要同时调用多个,可设置row=n,示例中只调用了一条,还可做相应的排序处理orderby=pubdate