[SOLVED]Search module / results template / non-Enlish language

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.
Post Reply
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

[SOLVED]Search module / results template / non-Enlish language

Post by docman »

Hi, can someone explain where can one fins the word "News" displayed according to the following template command in the search page of the Search module?

Code: Select all

  {foreach from=$results item=entry}
  <li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
  {* 
I assume "title" here means the title of the module (to me {$entry->urltxt} seems like standings for the actual title of the content item found). In my problematic case is "News" that is when displayed in a non-English language with accented characters, it is displayed improperly in HTML-entities, instead of the characters proper.

Thanks.
Last edited by docman on Wed Jan 13, 2010 8:28 am, edited 1 time in total.
cyberman

Re: Search module / results template / non-Enlish language

Post by cyberman »

You can use php commands as modifier like

Code: Select all

{$entry->urltxt|html_entity_decode}
docman
Forum Members
Forum Members
Posts: 103
Joined: Sat Oct 10, 2009 4:25 pm

[SOLVED]Re: Search module / results template / non-Enlish language

Post by docman »

Splendid!

Thanks so much.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Search module / results template / non-Enlish language

Post by Dr.CSS »

The [solved] goes in the first post subject line...
Post Reply

Return to “CMSMS Core”