[RESOLVED] Search engine - how to delete pourcentage in the editing content

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
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

[RESOLVED] Search engine - how to delete pourcentage in the editing content

Post by SUUD6501 »

HI,
When I use the search engine, the result is like this :
  • title- url on the title - (x%)
  • etc...
I'd like to delete the pourcentage (x%) after the url

I already tried to do something on page Search.module.php in repertories modules/Search but nothing changed.
Herewith the code I tried to modify in Search.module.php, line 160

function GetResultsHtmlTemplate()
  {
    return '{$searchresultsfor} "{$phrase}"
{if $itemcount > 0}

{foreach from=$results item=entry}
{$entry->title} - url}">{$entry->urltxt}({$entry->weight}%)
{/foreach}

{$timetaken}: {$timetook}
{else}
{$noresultsfound}
{/if}';
  }
I deleted in the code above ({$entry->weight}%) but nothing
It seems this function not useful because I even deleted this function and nothing changes
CMS version samoa 1.1
Many thanks for your help
Sylvie
Last edited by SUUD6501 on Tue Dec 18, 2007 12:46 pm, edited 1 time in total.
cyberman

Re: Search engine - how to delete pourcentage in the editing content

Post by cyberman »

Hi Sylvie,

please make a look at Extensions > Search. There you can modify the used template for output :).

Btw. the template comes from database, not from source code - it's only for install procedure.
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: Search engine - how to delete pourcentage in the editing content

Post by SUUD6501 »

Thanks for your answer
I modified the code in the database cms module template for Search template but nothing. Even in Extension/Search (in panel administration) where it's written with no ({$entry->weight}%) and nothing. The result is always displayed with pourcentage.
What can I do ?
Many thanks for your help
Best regards
Sylvie
cyberman

Re: Search engine - how to delete pourcentage in the editing content

Post by cyberman »

Do you want to delete percentage on content or browser title?
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: Search engine - how to delete pourcentage in the editing content

Post by SUUD6501 »

HI,
I give you an exemple where I want to delete the percentage
An exemple with word "blabla"
-----
Search result for "blabla"
  • blabla1 - blabla1 - (100%)
  • blabla2 - blabla2 - (85%)
  • blabla3 - blabla3 - (58%)
Many thanks
Sylvie
cyberman

Re: Search engine - how to delete pourcentage in the editing content

Post by cyberman »

Which CMSms / module version do you are using?
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: Search engine - how to delete pourcentage in the editing content

Post by SUUD6501 »

HI

CMS ms : samoa version 1.1
Search module : version 1.3

Regards
Sylvie
SUUD6501
Forum Members
Forum Members
Posts: 46
Joined: Wed Aug 22, 2007 8:43 am

Re: [RESOLVED] Search engine - how to delete pourcentage in the editing content

Post by SUUD6501 »

HI,
I found the solution.
After I have modified the template for "displayed result" in the admin panel. I have been into "Module/Search" always int he admin panel and I uninstalled and then installed the same version of the module.
and that's it
It's ok
many thank for your help
Sylvie
cyberman

Re: [RESOLVED] Search engine - how to delete pourcentage in the editing content

Post by cyberman »

SUUD6501 wrote: After I have modified the template for "displayed result" in the admin panel.
That was it I talked about  ;D ...
Post Reply

Return to “CMSMS Core”