Empire CMS Combine Item List properties Filter Instances Tutorial

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

If you often on the 58 with the city, net, common people, such as classified information Web site, in the vast information how can you accurately find the information you need, then we use the site to provide the screening function, so quickly and conveniently find the required information range. In our station, this screening function is often used, the following we take 58 with the City Network rental column list For example, detailed explanation of the Empire CMS combination List property filtering function.

First look at the picture:

  

I. Establishing a field

You can see the rental column list filter used 4 fields: "Area", "Rent", "Room", "mode."

(1) The value of the field "area" is: "All Anshan", "Tiedong", "Tiexi", "Lishan", "Qianshan", "other", and the fields are set as follows:

  

(2) The value of the field "Rent" is: "No Limit", "500 Yuan Below", "500-1000 Yuan", "1000-1500 Yuan", "1500-2000 Yuan", "2000-3000 Yuan", "3000-4500 Yuan", "4500 yuan", the field set the following figure:

  

(3) The value of the field "Room" is: "No Limit", "one Room", "Two Rooms", "Three Rooms", "Four Rooms", "Four rooms above", the field is set as follows:

  

(4) The value of the field "mode" is: "Whole rent", "Single Room for Rent", "bed", and the field is set as follows:

  

Second, the installation of modified Plug-ins

Download the official combination of the Empire CMS List Properties filter plug-ins, and then open the "fieldand.txt" file, copy all the contents of the file into the/e/class/userfun.php file (anywhere between);( Recommended to use Dreamweaver or editplus editing tools to modify the first in the list of combinations to display, "$fieldandvar = ' myarea,sex,age ';" Change to "$fieldandvar = ' Quyu,zujin,tingshi,fangshi ';", which is the list of 4 fields that we need to display.

We then use 4 colors to represent areas of each field code, thus visually analyzing their common code points, as shown in the following figure (2-1):

  

The field and field display spacer "$fieldexp = ' < DL class= ' Secitem >|</dd > < dl > '; Then according to the format: "option description |==| content 1, Value #内容2, value 2" for analysis:

  

Finally get the revised figure:

  

According to the code "< a href="/zufang/"class= ' select ' > All Anshan </a >" To get the selected item link style "$changefieldandcss = ' select ';".

According to the above figure (2-1) combining options and options with the display spacer format: Start Display characters | End display characters get "$valexp = ';".

Modify the good plug-in code as shown:

  

Third, the test effect

Let's look at the effect:

  

Click on the "area" Tiedong effect as follows:

  

Then click on the "Rent" of "500 yuan below" effect is as follows:

  

OK, there is no problem with the test.

Precautions:

(1) The code is correct, but the filter does not work because the combination of the corresponding field in the system model is not ticked.

(2) When the filter prompts "You come from the connection does not exist" because the address bar does not specify "&classid= column ID."

This article by the foreign website Daquan http://www.kguowai.com Original, reprint please indicate the source, thank you!

Related Article

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.