Page 1 of 1
Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 1:22 pm
by afri-can
i installed the pisearch tag
installation is fine I see the tag in the tags menu and placed tpl files in tmp/template
I created a template with the {pisearch} tag and text area as shown on pisearch help in the tags area
After the search button has been pressed, the index page is shown and nothing else.
Any one know the solution?

Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 1:28 pm
by cyberman
afri-can wrote:
placed tpl files in tmp/template
tmp/template
s is the right place

...
After the search button has been pressed, the index page is shown and nothing else.
Can you post a link ?
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 2:06 pm
by afri-can
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 2:22 pm
by cyberman
Have you set the default_encoding in config.php?
Have you call {pisearch) in your template (not in page)?
Please look at the documentation

...
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 2:38 pm
by afri-can
Read the help vey well see snipet:
{title}
{pisearch}
{content}
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 2:52 pm
by cyberman
cyberman wrote:
Have you set the default_encoding in config.php?
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 2:56 pm
by cyberman
kluczus1 wrote:
This line is IMHO only needed if you wanna show the results in another page than in root ...
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 3:06 pm
by afri-can
Inserting the above helped
Mybe I had to have the {pisearch} tag on the home (ROOT) page for it to work the way I had it?
I did try adding the above line before but I changed the "page" to "search" thinking this should be the name of the page
Can I get a .tpl in English?
Thank you very much for your help
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 3:23 pm
by cyberman
afri-can wrote:
Can I get a .tpl in English?
Please try this

:
{if $pisearchtotal eq 0}
{if $pisearchwordcount >1}
Nothing found with search terms ->{$pisearchwords}
{else}
Nothing found with search term ->{$pisearchwords}
{/if}
{else}
{if $pisearchtotal > 1}
Found {$pisearchtotal} contents with {if $pisearchwordcount >1}search terms{else}search term{/if} ->{$pisearchwords}
{else}
Found {$pisearchtotal} content with {if $pisearchwordcount >1}search terms{else}search term{/if} ->{$pisearchwords}
{/if}
{/if}
{foreach from=$pisearchresults item=entry}
url}">{$entry->menutext}
{$entry->details}
{/foreach}
Re: Problem with {pisearch} tag
Posted: Tue Mar 21, 2006 3:47 pm
by afri-can
It works
Thanks once again
