Home> CMS Tutorial> DEDECMS> body text

How to add serial numbers to DEDECMS article list

藏色散人
Release: 2020-01-04 09:11:48
Original
2509 people have browsed it

How to add serial numbers to DEDECMS article list

How to add serial numbers to the article list of DEDECMS?

Add serial numbers to the DEDECMS article list (using autoindex)

Recommended study:梦Weavercms

Sometimes we are To make a template, you need to add a serial number in front of the article title. This can be achieved through the autoindex attribute that comes with DreamWeaver. The implementation method is very simple. You only need to add this code where the serial number is increasing.

[field:global runphp='yes' name=autoindex][/field:global]
Copy after login

The complete code is as follows:

         
    {dede:arclist row='5' titlelen='30' }
  • [field:global runphp='yes' name=autoindex][/field:global][field:title/][field:pubdate function="MyDate('m-d',@me)"/]
  • {/dede:arclist}
Copy after login

The above is the detailed content of How to add serial numbers to DEDECMS article list. 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
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!