Webmastersite.net
Register Log In

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

Comments on Add to Advance Search a Custom Field

Albert0
Beginner

Usergroup: Customer
Joined: Dec 03, 2008

Total Topics: 4
Total Comments: 4
Albert0
Posted Jan 01, 2009 - 1:49 AM:

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

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 01, 2009 - 9: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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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