Home > Article > CMS Tutorial > How to read the latest articles on dedecms artlist
dedecms artlist How to read the latest articles on the entire site?
Since dedecms is the most commonly used cms in China, now we introduce the two simplest and most basic usages of calling the artlist tag of the latest article
Recommended learning: 伟梦cms
Let’s first look at the calling method of dedecms home page template as follows
The code is as follows:
{dede:arclist row=6 } <li><a href="[field:arcurl/]">[field:title/]</a> </li> {/dede:arclist}
So if we need to call it on the list page or article page What to do with the latest articles on the entire site? After checking the manual, we can use
type='top' to achieve it.
Example
The code is as follows:
{dede:arclist row=10 typeid='top'} <li><a href="[field:arcurl/]">[field:title/]</a> </li> {/dede:arclist}
If you want to call the file in the upper directory, just put typeid='you want to call the column id'
For example,
The code is as follows:
{dede:arclist row=6 typeid='5'} <li><a href="[field:arcurl/]">[field:title/]</a> </li> {/dede:arclist}
Okay, it’s quite simple and I won’t explain much.
The above is the detailed content of How to read the latest articles on dedecms artlist. For more information, please follow other related articles on the PHP Chinese website!