Thursday 15 March 2007 11:10:32 am
Finaly I solved the search problem! This is my form code:
<form action={"/resultados_buscador"|ezurl()} method="post" name="buscador" id="buscador" enctype="multipart/form-data">
<input type="text" name="serach_text" id="search_text"/>
<input type="submit" name="envia" id="envia" value="Go"/>
</form>
This get the post variable value:
{def $search_text=ezhttp('serach_text','post')}
This serach the results:
{def $search=fetch(content,search,hash(text,$search_text))}
And this show all founded results:
{foreach $search['SearchResult'] as $item}
<a href={concat( "/", $item.url_alias )|ezurl()}>{attribute_view_gui attribute=$item.object.data_map.name}</a>
{/foreach}
I hope that it help to you! ^^
|