Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dedecms calls the method of the latest articles on the whole site.

2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the method of Dedecms calling the latest article of the whole site. I hope you will gain a lot after reading this article. Let's discuss it together.

How does Dedecms call the latest articles on the whole site?

This paper gives an example of how to call the latest articles of the whole station in Dedecms channel, list page and content page.

Share it with you for your reference. The specific analysis is as follows:

Recommended study: dream weaving cms

If friends who use dedecms want to call the latest articles anywhere on the site, there are many ways. The following examples are Dedecms channels, list pages, and content pages that call the latest articles on the site.

The latest article in which the whole station is often called when building a station using dede. The methods described in this article are summarized as follows:

1. If you call the latest article on the home page, the tag is as follows:

The code is as follows:

{dede:arclist row=10} [field:title/] {/ dede:arclist}

two。 If you call the latest article on the channel page list page, the tag is as follows:

The code is as follows:

{dede:arclist typeid='top' row='10'} [field:title/] {/ dede:arclist}

Is to add a typeid='top' attribute to the tag.

3. If you call the latest article on the content page, you only need to change the row='10' to limit='1,10' if you want to delete this article from the latest article, taking into account that the article on the content page is up-to-date. The code is as follows:

The code is as follows:

{dede:arclist typeid='top' limit='1,10'} [field:title/] {/ dede:arclist} after reading this article, I believe you have a certain understanding of the method of Dedecms calling the latest articles on the whole site. You want to know more about it. Welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report