WebmasterSite.net

Register | Forgot Password

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

Version: 5.0.27
printPrint


Add to Advance Search a Custom Field
Albert0
Beginner

Usergroup: Customer
Joined: Dec 03, 2008

Total Topics: 4
Total Posts: 4
Posted 12/31/08 - 11:49 PM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California

Total Topics: 64
Total Posts: 7217
Posted 01/01/09 - 07:41 AM:
quote post
#2
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 - 08:02 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


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

WSN Links WSN Gallery WSN Knowledge Base WSN Forum WSN Classifieds WSN Directory WSN Software Directory