WebmasterSite.net

Add to Advance Search a Custom Field
How to just add to Advsearch.tpl another criteria

Version: 5.0.27
URL:

PrintPrint


Add to Advance Search a Custom Field
Albert0
Beginner

Usergroup: Customer
Joined: Dec 03, 2008

Total Topics: 4
Total Posts: 4
quote post #1
Posted 12/31/08 - 11:49 PM:

HI: Can you please give a complete example in how the advance search can be modified in order to add a custom field criteria to the template using current "FIND ITEMS" criterias already at template in order to allow the user to enter a value to search for it along with all other item search conditions? Thanks in advance,
Paul
developer
Avatar

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 65
Total Posts: 7610
quote post #2
Posted 01/01/09 - 7:41 AM:

For a link field named yourfield, insert
<br />and your field
<select name="yourfieldcondition">
<option value="like">{LANG_SEARCH_CONTAINS}</option>
<option value="=">{LANG_SEARCH_EQUALS}</option>
<option value="or">{LANG_SEARCH_CONTAINSANY}</option>
<option value="and">{LANG_SEARCH_CONTAINSALL}</option>
<option value="!=">{LANG_SEARCH_NOTEQUALS}</option>
<option value="bool">{LANG_SEARCH_BOOL}</option>
</select>
<input type="text" size="{STANDARDSIZE}" name="yourfieldsearch" />
in your desired location... say, right below
<input type="text" size="{STANDARDSIZE}" name="urlsearch" />


Whether that language should be language items or literal words depends on whether you've done an english or multilingual installation though, so it's better if you copy from your own template.

Edited by Paul on 01/01/09 - 8:02 AM
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.