Home Backend Development PHP Tutorial dedecms 自定义搜索 不能使用autoindex,该如何处理

dedecms 自定义搜索 不能使用autoindex,该如何处理

Jun 13, 2016 am 10:26 AM
dedecms global quot

dedecms 自定义搜索 不能使用autoindex
dedecms的自定义搜索使用datalist标签显示搜索结果,我现在想在搜索结果中使用不同的样式,但是datalist标签好像不支持autoindex自增字段,所以我不能使用[field:global name=autoindex runphp="yes"]
if(@me%5==0)@me="

";
else @me="";
[/field:global]来改变样式。

使用过dedecms的朋友,还有更好的办法吗?不用datalist,能实现上面说的效果也可以。


------解决方案--------------------
3个方法:
1.datalist里面写代码判断奇偶行
2.使datalist里面支持autoindex
参见:http://www.gotoseo.net/plus/view.php?aid=536
3.使用 的形式进行输出,
可参见group\templets\default\index.html文件
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article Tags

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Where is the imperial cms resource network template?

How to use dedecms How to use dedecms Apr 16, 2024 pm 12:15 PM

How to use dedecms

Accurate and reliable dedecms conversion tool evaluation report Accurate and reliable dedecms conversion tool evaluation report Mar 12, 2024 pm 07:03 PM

Accurate and reliable dedecms conversion tool evaluation report

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos to dedecms

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

How dedecms implements template replacement

A simple way to learn dedecms encoding conversion function A simple way to learn dedecms encoding conversion function Mar 14, 2024 pm 02:09 PM

A simple way to learn dedecms encoding conversion function

What loopholes does dedecms have? What loopholes does dedecms have? Aug 03, 2023 pm 03:56 PM

What loopholes does dedecms have?

What does dedecms mean? What does dedecms mean? Apr 16, 2024 pm 12:48 PM

What does dedecms mean?

See all articles