[Solved] Searchtext error/bug

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

[Solved] Searchtext error/bug

Post by christiaans »

Hey alby (and the others),

I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.

The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?

Thanks in advance for any help.

(I'm not using any other modules other than the standard MLE ones).

Cheers,
Chris
Last edited by Anonymous on Wed Aug 27, 2008 12:08 pm, edited 1 time in total.
alby

Re: Searchtext error/bug

Post by alby »

chris-s wrote: I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.

The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
Try to use:
{search .... lang="$lang"}

Alby
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Searchtext error/bug

Post by christiaans »

alby wrote:
chris-s wrote: I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.

The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
Try to use:
{search .... lang="$lang"}

Alby
I did actually, and it did not make any difference at all. I will set up a demo, so you can see for yourself.
Thanks for the quick reply by the way :).
alby

Re: Searchtext error/bug

Post by alby »

chris-s wrote: I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.

The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
ok, take

The problem is that searchtext take or param searchtext or from admin option: Search text ....

use:
{search ....  searchtext=`mle_translation.searchtext` lang="$lang"}

where searchtext is a key in ALL mle/lang/mylocale.php:
'searchtext' => 'I want this in search field for this lang',

Alby
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Searchtext error/bug

Post by christiaans »

alby wrote:
chris-s wrote: I am encountering the following error with CMSMS MLE 1.4.1 and the latest search module (1.5.1):
Everything works as it should, however, the {$searchtext} only outputs the default (English) search text, on all the different languages.

The {$submittext} however, works perfect. So it must be a bug with the searchtext variable I guess?
ok, take

The problem is that searchtext take or param searchtext or from admin option: Search text ....

use:
{search ....  searchtext=`mle_translation.searchtext` lang="$lang"}

where searchtext is a key in ALL mle/lang/mylocale.php:
'searchtext' => 'I want this in search field for this lang',

Alby
Okay, I guess I could use that. However - it worked perfectly until I upgraded to 1.4.1, 1.3.1 was no problem, just so you know.
alby

Re: Searchtext error/bug

Post by alby »

chris-s wrote: Okay, I guess I could use that. However - it worked perfectly until I upgraded to 1.4.1, 1.3.1 was no problem, just so you know.
ok, change is 50 days ago. You can replace + row with - row but remember for any upgrade:

action.default.php (#42 row):
- $this->smarty->assign('searchtext',$this->Lang('search'));
+ $this->smarty->assign('searchtext',$searchtext);

Alby
christiaans
Power Poster
Power Poster
Posts: 300
Joined: Tue Mar 04, 2008 10:37 am

Re: Searchtext error/bug

Post by christiaans »

Awesome, it works like a charm, thank you so much!

Btw, why did this change?
Locked

Return to “[locked] CMSMS MLE fork”