请问易优eyoucms模板标签searchform搜索标签
【基础用法】标签:searchform描述:文档标题搜索,默认搜索整站用法:{eyou:searchform type='sonself'} <form method="get" action="{$field.action}">
<input type="text" name="keywords" />
<input type="submit" value='点击搜索' />
{$field.hidden}
</form>
{/eyou:searchform}属性:
type='default' 默认搜索方式,如果指定typeid属性,想实现连同子分类一起搜索,可以设置 type='sonself' typeid='' 默认搜索所有栏目的文档标题,可以指定栏目id搜索,也可以在不同栏目搜索当前栏目的文档,比如:typeid='$eyou.field.typeid'
modelid='' 默认搜索所有模型的文档标题,可以指定模型id搜索,也可以在不同栏目所在模型搜索当前模型的文档,比如:modelid='$eyou.field.current_channel'
模板自定义:
搜索列表默认模板是 lists_search.htm,要实现不同模型展示模板不同,可以加上模型标识,格式:lists_search_模型ID.htm
比如:文章模型 lists_search_1.htm
产品模型 lists_search_2.htm
图集模型 lists_search_3.htm
下载模型 lists_search_4.htm
视频模型 lists_search_5.htm
专题模型 lists_search_7.htm
更新时间:2025-04-11 01:11:17
上一篇:请问织梦php数据库配置文件
下一篇:请问易优cms网站diyurl功能:内置URL调用-Eyoucms
转载请注明原文链接:https://www.muzicopy.com/suibi/7369.html