<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

DEDE调用指定文章ID来调用特定文档

时间:2020-12-21

{dede:arclist row=1 idlist='6'} 
<li><a href="[field:arcurl/]">[field:description/]</a></li> 
{/dede:arclist} 

一、指定文章的id来调用特定文档: 

{dede:arclist idlist='373,387,277' titlelen=100}<a href='[field:arcurl/]'>[field:title/]</a>{/dede:arclist} 

所有只需在arclist里加入idlist='373,387,277',表示调用id号为373,387,277的文档。 

二、指定keyword来调用特定文档: 

{dede:arclist keyword='织梦58' titlelen=100}<a href='[field:arcurl/]'>[field:title/]</a>{/dede:arclist} 

所有只需在arclist里加入keyword='织梦58',表示调用keyword设置为织梦58的文档。同样idlist和keyword的值里可以有多个值,当需要设置多个值时,只需要用英文状态下的逗号“,”分开即可。 

{dede:global runphp="yes"} 
global $dsql; 
$row=$dsql->getOne("select title from dede_archives where id=xxx"); 
@me=$row["title"]; 
{/dede:global} 

得到文章的内容 

{dede:global runphp="yes"} 
global $dsql; 
$row=$dsql->getOne("select body from dede_addonarticle where aid=xxx"); 
@me=$row["body"]; 
{/dede:global}
0
首页
案例
关于
联系