Empire CMS 6.0 features decryption of the new version of the Combine Items feature, using Empire bonding

Source: Internet
Author: User

Can be used to do a-Z information to retrieve a field equal to how much, output, etc.

The Empire CMS6.0 has added many features and is more powerful on the basis of inheriting previous versions of the combined features. Today we are dedicated to the 6.0 combination improvement.

Review the binding syntax for previous versions:
Click here to view: http://bbs.phome.net/showthread-13-25490-0.html

What is the improvement compared to the previous version? Here's one by one.
one, support to list all the information of a data table:
Specify the system model ID for the data table, and the model ID variable is named: mid
Example: The following link shows all the information for the news sheet:
/e/action/listinfo.php?mid=1

Second, support the list of multi-column information:
Column ID variable name: classid
Display multiple columns can be opened with a comma
Example: The following is all the information displayed in the column id=2
/e/action/listinfo.php?classid=2

Iii. Support for listing of information on multiple topics:
Topic ID Variable Name: Ztid
Show multiple topics can be opened with a comma
Example: The following shows all the information for the featured Id=1
/e/action/listinfo.php?ztid=1

Iv. List of information that supports listing title categories:
Title Category ID Variable name: Ttid
Display multiple title categories can be opened with commas
Example: The following is all the information that displays the title category Id=1
/e/action/listinfo.php?ttid=1

v. Support for specifying the list template to display:
List template ID variable name: tempid
Example: Below is a list template that uses template id=1
/e/action/listinfo.php?mid=1&tempid=1

VI. Support Specifies the number of records to display per page:
Number of records per page variable name: line
Do not specify the number of bars per page to be set by the specified column, topic, or parameter
Example: Below shows a list of 20 articles per page
/e/action/listinfo.php?mid=1&tempid=1&line=20

VII. support for specifying the starting and ending time range for information release:
Start time variable name: starttime; end time variable name: Endtime
Time format: ' 2009-08-20 ', do not specify a start time to indicate all information before the end time
Example: The following is a list of information that displays the day of 2009-08-20
/e/action/listinfo.php?mid=1&tempid=1&starttime=2009-08-20&endtime=2009-08-20

viii. support for specifying sort fields:
Sort field Variable name: by order; ascending order field variable: Myorder
System sort field: Newstime,id,onclick,totaldown,plnum
Custom sort field: A field in the system model that sets fields as sort items
Myorder=0 is sorted in descending order (default); Myorder=1 is sorted in ascending order
Example: The following is a descending sort by the number of messages clicked (onclick)
/e/action/listinfo.php?mid=1&tempid=1&orderby=onclick

Nine, page template support tag call and program code:
Implement dynamic list page effect and static list;
Can receive the address bar variable and output the corresponding navigation and so on.

Application Examples:
Example 1: Displays information about all "Chaoyang" areas in the classification information table, with the following address:
/e/action/listinfo.php?mid=8&tempid=8&ph=1&myarea= Chaoyang District

Example 2: Display column id=2 and special id=1 information, the address is as follows:
/e/action/listinfo.php?classid=2&ztid=1&tempid=1

Example 3: Display the Classification Information table column id=10 and 17, the topic id=1, the title classification id=1, the release time is 2009-01-01~2009-08-20, the area is "Chaoyang District", the contact mailbox is [email protected] all information, The address is as follows:
/e/action/listinfo.php?mid=8&tempid=1&classid=10,17&ztid=1&ttid=1&starttime=2009-01-01 &endtime=2009-08-20&ph=1&myarea= Chaoyang &[email protected]

Other Notes:
To add the Ph=1 parameter using the Union field
6.0 version of the combination of items and column dynamic page separation, and then visit the column page do not have to determine whether the combination of items, display more efficient. New address for conjunction:/e/action/listinfo.php


New combination features are very practical and flexible, more applications look forward to your practice, so this section is complete.

More Empire CMS 6.0 decryption please listen to tell.

Empire CMS 6.0 features decryption of the new version of the Combine Items feature, using Empire bonding

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.