Tutorial on creating the CMS letter navigation function

Source: Internet
Author: User

In the vast range of software, we need to quickly find a software, in addition to using the query function, you can also use the letter navigation software index to find the required software, in this lecture, we will explain in detail how to create an emperor CMS letter navigation function.

1. Add the "infozm" field:

1. "manage data tables ":

2. Download the "Management field" of the system data table (phome _ ecms _ download ":

3. Click Add field:

4. Field settings:

Infozm is a field used to obtain letters of the title. When you add or modify information, the first pinyin Letter of the title is automatically stored. This field name cannot be changed. Otherwise, the system does not recognize it. The field type is varchar and the length is 1.

 

5. Management System Model:

6. Click "modify ":

7. modify the system model:

Select "entry, contribution, add, modify, and combination items ". "Entry items" are used to automatically obtain letter indexes by adding or modifying information in the background, and "Contribution items" are used to automatically obtain letter indexes by submitting documents at the front end.

Click Submit to download the system model and modify it.

 

Go to the "System Software" in the "download center", and modify one of the software to see the effect:

If you find that "letter navigation" does not have any software letters, you can submit the information directly, and the system will automatically store the first pinyin Letter of the title, for example:

"Letter navigation" is okay. We will call letter navigation on the list page.

You can call letter navigation on the list page in either of the following ways:

1. Add a custom list navigation page with 26 letters.

2. Another option is to use combined items for navigation, such as:/e/Action/listinfo. php? Mid = System Model ID & tempid = list template ID & pH = 1 & infozm = letter.

 

 

2. Add 26 letters to the custom list navigation page:

1. Click "add custom list ":

2. Click "add custom list ":

3. Configure the custom information list:

Statistical record code: Select count (*) as total from [! DB. Pre!] Ecms_download where infozm = "C" and checked = 1

Query record code: Select * from [! DB. Pre!] Ecms_download where infozm = "C" and checked = 1 order by ID DESC

Click "Submit" to complete the addition. Similarly, other letters follow the settings, change infozm = "C" in the statistics record code and query record code to infozm = "letter.

See:

Call the software with the first pinyin letter "C.

3. Use items for Navigation:

The difference between using items for navigation methods and calling the letter navigation method on the list page does not require a custom list. Add/e/Action/listinfo. php directly in the list template? Mid = System Model ID & tempid = list template ID & pH = 1 & infozm = letter. For example, you can call the software with the first pinyin letter as "C" as the title: c.

Okay, this is the end of the lecture. If you are not familiar with the integration item, go to the official website to view the basic tutorial of the Integration item.

 

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.