实现搜索页可用autoindex标签显示序号 打开文件:include/arc.searchview.class.php 查找内容(715行附近) $this->dtp2->LoadSource($innertext); 修改为: $this->dtp2->LoadSource($innertext); $GLOBALS['autoindex'] = '0'; 将修改后的 716 - 717行 for($i=0;$i<$row;$i++) { 修改为: for($i=0;$i<$row;$i++) { $GLOBALS['autoindex'] ++; 保存后,修改 搜索页模版,默认模版为 templets/default/search.htm 在需要显示序号的位置加上 [field:global name=autoindex runphp="yes"]@me;[/field:global] 即可显示每条的序号 |
转载请注明:DEDEcms» 织梦搜索页list列表前添加序号,搜索页支持判断
标签: