Page 1 of 1

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

Posted: Wed Dec 12, 2007 2:10 pm
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

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

Posted: Wed Dec 12, 2007 2:16 pm
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.

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

Posted: Thu Dec 13, 2007 3:25 pm
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

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

Posted: Thu Dec 13, 2007 6:12 pm
by cyberman
Do you want to delete percentage on content or browser title?

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

Posted: Fri Dec 14, 2007 8:59 am
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

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

Posted: Fri Dec 14, 2007 6:26 pm
by cyberman
Which CMSms / module version do you are using?

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

Posted: Mon Dec 17, 2007 9:12 am
by SUUD6501
HI

CMS ms : samoa version 1.1
Search module : version 1.3

Regards
Sylvie

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

Posted: Tue Dec 18, 2007 12:53 pm
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

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

Posted: Tue Dec 18, 2007 5:05 pm
by cyberman
SUUD6501 wrote: After I have modified the template for "displayed result" in the admin panel.
That was it I talked about  ;D ...