Dedecms custom search cannot use autoindex. how can this problem be solved?
Source: Internet
Author: User
Dedecms custom search cannot use the autoindexdedecms custom search to use the datalist tag to display the search results. now I want to use different styles in the search results, however, the datalist tag does not support autoindex auto-increment fields, so I cannot use the [field: globalname = autoindex dedecms custom search function. autoindex is not supported.
Dedecms's custom search uses the datalist tag to display the search results. I want to use different styles in the search results, but the datalist tag does not seem to support the autoindex auto-increment field, so I cannot use [field: global name = autoindex runphp = "yes"]
If (@ me % 5 = 0) @ me = "";
Else @ me = "";
[/Field: global] to change the style.
Are there any better solutions for dedecms users? You don't need to use datalist to achieve the effect described above.
------ Solution --------------------
Three methods:
1. write code in datalist to judge the parity
2. enable autoindex in datalist
See: http://www.gotoseo.net/plus/view.php? Aid = 536.
3. use Output,
See the group \ templets \ default \ index.html file
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