Search not searching whole site

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Search not searching whole site

Post by swarfega »

I have recently enabled pretty urls on my site but have found that search now only outputs results from news and gallery.

How can I fix this?
uniqu3

Re: Search not searching whole site

Post by uniqu3 »

Did you try reindexing your site with Search module?
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Search not searching whole site

Post by swarfega »

Just tried that, with the same results.
uniqu3

Re: Search not searching whole site

Post by uniqu3 »

How does your Search result template look like?
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Search not searching whole site

Post by swarfega »

Code: Select all

{cms_module module="TruetypeText" style="Welcome" text=$searchresultsfor}{cms_module module="TruetypeText" style="Welcome" text=":"}<br />{cms_module module="TruetypeText" style="Welcome" text=$phrase}
{if $itemcount > 0}
<ul><span class="text">
  {foreach from=$results item=entry}
  <li>{$entry->title} - <a href="{$entry->url}">{$entry->urltxt}</a> ({$entry->weight}%)</li>
  {* 
     You can also instantiate custom behaviour on a module by module basis by looking at
     the $entry->module and $entry->modulerecord fields in $entry 
      ie: {if $entry->module == 'News'}{News action='detail' article_id=$entry->modulerecord detailpage='News'} 
  *}
  {/foreach}</span>
</ul>

<p class="postby">{$timetaken}: {$timetook}</p>
{else}
  <p><strong>{$noresultsfound}</strong></p>
{/if}
uniqu3

Re: Search not searching whole site

Post by uniqu3 »

And it gives you page results if you disable pretty url?
swarfega
Forum Members
Forum Members
Posts: 174
Joined: Mon Sep 06, 2010 10:51 am

Re: Search not searching whole site

Post by swarfega »

It was giving me complete results before I enabled pretty urls.
Post Reply

Return to “The Lounge”