1 |
{dede:arclist row=1 idlist= ‘6‘ } |
2 |
<li><a href= "[field:arcurl/]" >[field:description/]</a></li> |
|
1. Specify the Document ID to call a specific document: the code is as follows:
1 |
{dede:arclist idlist= ‘373,387,277‘ titlelen=100}<a href= ‘[field:arcurl/]‘ >[field:title/]</a>{/dede:arclist} |
|
All users only need to add idlist = '20160301' to arclist to call the document whose ID number is 373,387,277. 2. Specify keyword to call a specific document: {Dede: arclist keyword = ' 'titlelen = 100} <a href =' [field: arcurl/] '> [field: title/] </a> {/Dede: arclist} All users only need to add keyword =' 网' to arclist, which indicates the document that calls keyword and sets it as. Similarly, idlist and keyword values can have multiple values. To set multiple values, you only need to separate them with commas (,) in English. The Code is as follows:
1 |
{dede:global runphp= "yes" } |
3 |
$row=$dsql->getOne( "select title from dede_archives where id=xxx" ); |
|
The code for getting the article content is as follows:
1 |
{dede:global runphp= "yes" } |
3 |
$row=$dsql->getOne( "select body from dede_addonarticle where aid=xxx" ); |
|
Dede calls the Specified Document ID to call a specific document