• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [SOLVED] Can Search module index custom content blocks
PostPosted: Tue May 01, 2007 8:43 am 
Offline
Forum Members
Forum Members

Joined: Mon Apr 03, 2006 10:58 am
Posts: 44
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 :)

_________________
An approach to mutli-lingual CMSMS using only content blocks:
http://forum.cmsmadesimple.org/index.ph ... 756.0.html


Last edited by jsmonzani on Tue May 01, 2007 9:04 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: [SOLVED] Can Search module index custom content blocks
PostPosted: Thu Jul 26, 2007 3:47 pm 
Offline
New Member

Joined: Tue Sep 19, 2006 5:29 pm
Posts: 8
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


Top
 Profile  
 
 Post subject: Re: [SOLVED] Can Search module index custom content blocks
PostPosted: Thu Jul 26, 2007 4:07 pm 
Offline
New Member

Joined: Tue Sep 19, 2006 5:29 pm
Posts: 8
Just tried something and it returened the following error, not sure if that has something to do with it?

Code:
Warning: Parameter origreturnid is not known...
dropped in /home/euroboat/public_html/dev/lib/misc.functions.php on line 125


Top
 Profile  
 
 Post subject: Re: [SOLVED] Can Search module index custom content blocks
PostPosted: Thu Jul 26, 2007 4:09 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 5832
Location: Fernie British Columbia, Canada
That error is fixed in svn and will be released with the 1.1.1 release due out shortly.

_________________
Follow me on twitter
For quality help follow these instructions:
a) Think about the problem for an hour
b) research the problem for an hour
c) spend 1/2 an hour explaining it and providing as much information as you can muster
(too much information is okay, not enough information may get your question ignored).
--
if you can't bother explaining your problem well, why should we bother helping with it.
----------------
Don't make me angry..... you won't like me when I'm angry....


Top
 Profile  
 
 Post subject: Re: [SOLVED] Can Search module index custom content blocks
PostPosted: Thu Jul 26, 2007 4:22 pm 
Offline
New Member

Joined: Tue Sep 19, 2006 5:29 pm
Posts: 8
Damn bummer!!


Top
 Profile  
 
 Post subject: Re: [SOLVED] Can Search module index custom content blocks
PostPosted: Tue Aug 14, 2007 10:44 pm 
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.


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: nervino


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner