Problem with {pisearch} tag

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
afri-can

Problem with {pisearch} tag

Post 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?

8)
cyberman

Re: Problem with {pisearch} tag

Post by cyberman »

afri-can wrote: placed tpl files in tmp/template
tmp/templates is the right place  ;) ...
After the search button has been pressed, the index page is shown and nothing else.
Can you post a link ?
cyberman

Re: Problem with {pisearch} tag

Post 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  ;) ...
afri-can

Re: Problem with {pisearch} tag

Post by afri-can »

Read the help vey well see snipet:

        {title}
{pisearch}




        {content}
cyberman

Re: Problem with {pisearch} tag

Post by cyberman »

cyberman wrote: Have you set the default_encoding in config.php?
cyberman

Re: Problem with {pisearch} tag

Post by cyberman »

kluczus1 wrote:
This line is IMHO only needed if you wanna show the results in another page than in root ...
afri-can

Re: Problem with {pisearch} tag

Post 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
cyberman

Re: Problem with {pisearch} tag

Post by cyberman »

afri-can wrote: Can I get a .tpl in English?
Please try this  ;D:
{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}
afri-can

Re: Problem with {pisearch} tag

Post by afri-can »

It works
Thanks once again :)
Locked

Return to “CMSMS Core”