熊猫视频色哟哟老司机,黄页网站视,欧美办公室AV在线观看,欧美性爱xxxxx,男的吃女的吃过的东西,日韩男女拍拍拍高潮,精品色综合亚洲色七久久,国产欧美日韩综合精品一区二区,日韩AV人体WW,欧美激情在线狂野欧美精品

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'


模板自定義:

搜索(suo)列表默認模(mo)板是 lists_search.htm,要(yao)實(shi)現(xian)不同模(mo)型展示模(mo)板不同,可(ke)以加上模(mo)型標識,格(ge)式:lists_search_模(mo)型ID.htm

比如:文章模型 lists_search_1.htm

          產品模型 lists_search_2.htm

        &nbsp; 圖集模型 lists_search_3.htm

          下(xia)載模型 lists_search_4.htm

          視頻模型(xing) lists_search_5.htm

  &nbsp;       專題模型(xing) lists_search_7.htm

          ……

涉及表字段:

 

【更多示例】
-------------------------------示例1--------------------------------
描述:整站搜索
{eyou:searchform type='sonself'}
    <form class="sidebar-search" method="get" action="{$field.action}">
        <input type="text" class="form-control" name="keywords" placeholder="請輸入關鍵詞" />
        <input type="submit" name="btn" value="搜索" />
        {$field.hidden}
    </form>
{/eyou:searchform}

-------------------------------示例2--------------------------------
描述:指定產品模型搜索
{eyou:searchform type='sonself' modelid='2'}
    <form class="sidebar-search" method="get" action="{$field.action}">
        <input type="text" class="form-control" name="keywords" placeholder="請輸入關鍵詞" />
        <input type="submit" name="btn" value="搜索" />
        {$field.hidden}
    </form>
{/eyou:searchform}

-------------------------------示例3--------------------------------
描述:指定欄目搜索
{eyou:searchform type='sonself' typeid='2'}
    <form class="sidebar-search" method="get" action="{$field.action}">
        <input type="text" class="form-control" name="keywords" placeholder="請輸入關鍵詞" />
        <input type="submit" name="btn" value="搜索" />
        {$field.hidden}
    </form>
{/eyou:searchform}

-------------------------------示例4--------------------------------
描述:跟隨自定義搜索列表模板
{eyou:searchform type='sonself' modelid='$eyou.field.current_channel'}
    <form class="sidebar-search" method="get" action="{$field.action}">
        <input type="text" class="form-control" name="keywords" placeholder="請輸入關鍵詞" />
        <input type="submit" name="btn" value="搜索" />
        {$field.hidden}
    </form>
{/eyou:searchform}


文檔最后更新時間:2024-08-14 16:08:22

文檔
 目(mu)錄(lu) 

深色
模式(shi)

切換
寬度