[SOLVED] Can Search module index custom content blocks

General project discussion. NOT for help questions.
Post Reply
jsmonzani
Forum Members
Forum Members
Posts: 54
Joined: Mon Apr 03, 2006 10:58 am

[SOLVED] Can Search module index custom content blocks

Post by jsmonzani »

Solved

----

Hello,

In an attempt to create a multilingual version of a site within the same template, I'm using loads of custom content blocks such as
  {content block="content_fr"}

The Search module doesn't seem to index them, though. Is there a way to do so?

Indexing seems to take place in Search.module.php around line 430

----

Solution

The problem was that words were sticked together by the search module when indexing.
In order to prevent so, I've modified Search.module.php at line 427

instead of appending words without separations
$text .= $v;

I used a space
$text .= $v." ";

... and it works. Don't know if it was a bug :)
Last edited by jsmonzani on Tue May 01, 2007 9:04 am, edited 1 time in total.
An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html
baby2boy
New Member
New Member
Posts: 8
Joined: Tue Sep 19, 2006 5:29 pm

Re: [SOLVED] Can Search module index custom content blocks

Post by baby2boy »

hi jsmonzani , i'm using your multilingual script, which i must say works extremely well.

However I too am having problems with the search in that if i'm currently in French (lang=fr) when i search for anything nothing happens and the same page reloads. but if i search for a French word when in English (lang="en") then it finds and lists the search results with no problem but also in the English language format.

Am using it in CMS Made Simple 1.1 Samoa.

Any help would be very much appreciated.

Kind regards
Jon
baby2boy
New Member
New Member
Posts: 8
Joined: Tue Sep 19, 2006 5:29 pm

Re: [SOLVED] Can Search module index custom content blocks

Post by baby2boy »

Just tried something and it returened the following error, not sure if that has something to do with it?

Code: Select all

Warning: Parameter origreturnid is not known... 
dropped in /home/euroboat/public_html/dev/lib/misc.functions.php on line 125
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: [SOLVED] Can Search module index custom content blocks

Post by calguy1000 »

That error is fixed in svn and will be released with the 1.1.1 release due out shortly.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
baby2boy
New Member
New Member
Posts: 8
Joined: Tue Sep 19, 2006 5:29 pm

Re: [SOLVED] Can Search module index custom content blocks

Post by baby2boy »

Damn bummer!!
aaronc

Re: [SOLVED] Can Search module index custom content blocks

Post by aaronc »

calguy, what is the problem causing that error? I'm getting it as well, when a search sends the site to the search page I have assigned. I'd like to fix it myself so that I can get my site rolling.

Additionally, search has stopped indexing my albums, perhaps someone here knows why?

Appreciate the knowledge sharing,

Aaron.
Post Reply

Return to “General Discussion”