Home > CMS Tutorial > DEDECMS > body text

How to read the latest articles on dedecms artlist

藏色散人
Release: 2019-12-23 10:49:19
Original
1858 people have browsed it

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}
Copy after login

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=&#39;top&#39;} 
<li><a href="[field:arcurl/]">[field:title/]</a> 
</li> 
{/dede:arclist}
Copy after login

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=&#39;5&#39;} 
<li><a href="[field:arcurl/]">[field:title/]</a> 
</li> 
{/dede:arclist}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!