Sunday 28 May 2006 8:39:57 am
Hi
Because you dont use /content/search action, you have empty search result. There is $search_text in search.tpl but this variable is set in kernel/content/search.php
$searchText = '';
if ( $http->hasVariable( "SearchText" ) )
{
$searchText = $http->variable( "SearchText" );
}
and $tpl->setVariable( "search_text", $searchText );
You can use fetch function in your full node override template like:
{def $search=fetch( 'content', 'search',
hash( 'text', ezhttp( 'SearchText', 'get' ) ) )}
{foreach $search.SearchResult as $matched_node}
{$matched_node.name|wash} <br />
{/foreach}
more: http://ez.no/doc/ez_publish/technical_manual/3_7/reference/modules/content/fetch_functions/search use hash( 'text', ezhttp( 'SearchText', 'get' ) ) instead of hash(text,$search_text)
http://ez-publish.pl
|