In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how Imperial cms implements item list property filtering. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
First, create fields
You can see that four fields are used in the list screening of rental columns: "area", "rent", "hall" and "method".
1. The values of the field "area" are "Quan Anshan", "Tiedong", "Tiexi", "Lishan", "Qianshan" and "other". The field settings are as follows:
2. The values of the field "rent" are: "unlimited", "less than 500yuan", "500yuan-1000 yuan", "1000-1500 yuan", "1500-2000 yuan", "2000-3000 yuan", "3000-4500 yuan", "more than 4500 yuan". The field is set as follows:
3. The values of the field "hall" are "unlimited", "one room", "two rooms", "three rooms", "four rooms" and "more than four rooms". The field is set as shown in the following figure:
4. The values of the field "method" are "whole set rental", "single room rental" and "bed". The field settings are as follows:
Second, install and modify plug-ins
Download the Imperial cms official binding item list attribute filter plug-in, then open the "fieldand.txt" file and copy all the contents of the file into the / e/class/userfun.php file (anywhere between them); (it is recommended to modify it with editing tools such as Dreamweaver or Editplus)
First, in the list of combined fields to be displayed, change "$fieldandvar='myarea,sex,age';" to "$fieldandvar='quyu,zujin,tingshi,fangshi';". This is the list of 4 fields that we need to display.
Then we use four colors to represent the area of each field code, so as to visually analyze their common code points, as shown in the following figure:
The display spacer "$fieldexp=' |" between the field and the field is obtained from the image above.
Then analyze it according to the format: "option description | = | content 1, value 1, content 2, value 2":
Finally, we get the modified value:
Get the selected option link style "$changefieldandcss='select';" according to the code "Quan Anshan".
According to the above picture, combine the display spacer format of the option with the option: start display character | end display character to get "$valexp='';".
The modified plug-in code is shown in the figure:
Note:
1. The code is correct, but the reason why it does not work after filtering is that the combination of the corresponding fields of the system model is not checked.
2. When filtering, the prompt "the connection you come from does not exist" is because the address bar does not specify "& classid= column ID".
Thank you for reading! On the Imperial cms implementation list property filtering method is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.