This is the site in development:
http://www.smudgedesign.com.au/japan/
The search function is at the bottom of the rhs sidebar.
Inside a global content block, I'm using this code which is inside a sidebar div: {search searchtext="" resultpage="results" submit="Search"}
This is the search template code:
Code: Select all
{$startform}
<label for="{$search_actionid}searchinput">{$searchprompt}</label>: <input type="text" id="{$search_actionid}searchinput" name="{$search_actionid}searchinput" size="20" maxlength="50" value="{$searchtext}" {$hogan}/><input name="submit" value="{$submittext}" type="submit" />
{if isset($hidden)}{$hidden}{/if}
{$endform}
This is the results template code:
Code: Select all
<h3>{$searchresultsfor} "{$phrase}"</h3>
{if $itemcount > 0}
<ul>
{foreach from=$results item=entry}
<li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
{*
You can also instantiate custom behaviour on a module by module basis by looking at
the $entry->module and $entry->modulerecord fields in $entry
ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'}
*}
{/foreach}
</ul>
{else}
<p><strong>{$noresultsfound}</strong></p>
{/if}
And this is the link to the search results page: [email]
http://www.smudgedesign.com.au/japan/in ... ge=results[/email]
I've tried reindexing the content in the search module and clearing the cache in global settings. It's baffling me because it was working a few days ago and I can't figure out what's changed.
Thanks for your help and best wishes for 2009!