Search for the release can search more keywords and set column search

Source: Internet
Author: User

This is a bit of trouble because I don't know much about PHP ... In fact, you can use PHP directly call all categories, I have used the most dishes of a ...

Search can be based on your search keyword/word close to the extent of the number of lines ...

Don't ask me if I want to change PHP without ....

Nonsense does not say the code for everyone to see ... Just go back and change.

1.<input type="hidden" name="kwtype" value="0">
<input type="hidden" name="channeltype" value="1">
<input name="keyword" id="search-keyword" type="text">

The first red Word 0 is sure to change, if it is 1 will be wrong. For reference in advanced search, this is the search keyword type.

1 is to search your keywords or related articles

0 is the search for your keyword and related articles

Everybody can test two whether this is so haha.

2.

<input type= "hidden" name= "Channeltype" value= "1" >

This is the definition of the column remember it seems to forget to change the time is what the train of thought. Ha ha

Anyway, plus just pull ... There's one more place.

<select name='typeid' id='typeid' class="select">
<option value='titlekeyword' selected='1'>--不限栏目--</option>
{dede:channelartlist row='950' typeid='3,376,375,218,229,383,18,360,366,93,60,16,66,109,103,82,23,118,50,72,4,29,41,211,204,197,355,242,190,181,174,171,163,154,147,138,130,86,273,228,227'}<option value="{dede:field name='typeid'/}">—{dede:field name='typename'/}</option>{/dede:channelartlist}
</select>

The above.

<select name= ' typeid ' id= ' typeid ' class= ' select ' >

This is defined by the column ID to search

Value= ' Titlekeyword ' selected= ' 1 '

Here is the definition of intelligent search.

And the following is to call out the column ID by ID to search reference on OK pull haha probably so ...

Because too many people ask so just write a tutorial out ... It's okay if I can help you. Got used to it here.

Even if not the top I will continue to help ...

The following is a PR high station can bring me a small point can PM me to pull. Ha ha

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.