LISE Custom Search Template Title Field Only Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

LISE Custom Search Template Title Field Only

Post by webform »

Is it possible to setup a custom search field that only searches the title field in a LISE Custom Search Template?
I can easily search custom fields, but I can't seem to find the right setup for a search field to only search the title field.

I've tried these combinations:

Code: Select all

<input type="text" id="{$modulealias}title" name="{$actionid}title" value="" />
<input type="text" id="{$modulealias}title" name="{$actionid}search_title" value="" />
User avatar
webform
Power Poster
Power Poster
Posts: 503
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: LISE Custom Search Template Title Field Only

Post by webform »

Never mind!
It seems that the global search field practically functions as a title search field when combined with custom search fields.

Code: Select all

<div id="{$modulealias}_search">
  {$formstart}
    <label for="{$modulealias}title">{$mod->ModLang('searchfor')}:</label>&nbsp;
    <input type="text" id="{$modulealias}searchinput" name="{$actionid}search" size="20" maxlength="50" value="" />
    <label for="{$modulealias}title">Owner:</label>&nbsp;
    <input type="text" id="{$modulealias}myfieldalias" name="{$actionid}search_myfieldalias" size="20" maxlength="50" value="" />
    <input class="search-button" name="submit" value="{$mod->ModLang('search')}" type="submit" />
  {$formend}
</div>
Post Reply

Return to “Modules/Add-Ons”