Page 1 of 1

LISE Custom Search Template Title Field Only

Posted: Thu Jun 12, 2025 9:12 am
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="" />

Re: LISE Custom Search Template Title Field Only

Posted: Thu Jun 12, 2025 9:56 am
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>