Home  >  Article  >  CMS Tutorial  >  How to add serial numbers to DEDECMS article list

How to add serial numbers to DEDECMS article list

藏色散人
藏色散人Original
2020-01-04 09:11:482499browse

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]

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}

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!

Statement:
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