Dedecms channel, list page, the content page calls the latest article of the whole site

Source: Internet
Author: User


When using dede to build a site, you often need to call the latest article of the whole site. The methods described in this article are summarized as follows:
1. If you are calling the latest article of the whole site on the homepage, the tag is as follows:

The code is as follows: Copy code

{Dede: arclist row = 10}

<A href = "[field: arcurl/]"> [field: title/] </a>

{/Dede: arclist}


2. If you call the latest dynamic route for CDN article on the channel page list page, the labels are as follows:

The code is as follows: Copy code

{Dede: arclist typeid = 'top' row = '10 '}

<A href = "[field: arcurl/]"> [field: title/] </a>

{/Dede: arclist}


Add a typeid = 'top' attribute to the tag.

3. If you call the latest article on the content page, the tag is as follows:
Because if the content page is the latest article and you want to remove it from the latest article, you only need to change row = '10' to limit = '1, 10.

The code is as follows: Copy code

{Dede: arclist typeid = 'top' limit = '1, 10 '}

<A href = "[field: arcurl/]"> [field: title/] </a>

{/Dede: arclist}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.