Google Custom Search and CMSB

6 posts by 2 authors in: Forums > CMS Builder
Last Post: May 25, 2009   (RSS)

Hi, there.

I've just started working on a client's site, which will have a Google custom search engine on every page. Here's the first page I'm working on: http://www.yallaf1.com/links.php.

The client already has a site on their server, which uses Article Manager that generates pages with a .shtml extension. When I test the search engine on my page it only returns results from the Article Manager site, not my .php CMSB-generated page.

I realise that this might be a Google issue, not one for CMSB, but has anyone else built Google custom search into a CMSB site?
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Google Custom Search and CMSB

By ross - May 21, 2009

Hi Nigel

Thanks for posting!

The pages should be searchable. I am curious if perhaps you have the CMS Builder stuff happening in a folder you haven't told Google to search.

Another idea would be trying to add:

'useSeoUrls' => false,

to your viewer code. That will make the urls for your pages more seo frieldly. The only thing there is that this setting doesn't work on all servers.

Give it a shot and let me know how you make out :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Google Custom Search and CMSB

Hi, Ross.

Thanks for the reply. Please can you tell me where this line of code should go? In the header?

Regards,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net

Re: [NigelGordijk] Google Custom Search and CMSB

By ross - May 22, 2009

Hi Nigel

It goes right up in the viewer code at the top. So like this:

list($tagsRecords, $tagsMetaData) = getRecords(array(
'tableName' => 'tags',
'useSeoUrls' => true,

));


Of course, your code will look a bit different. One other thing is that I gave you slightly wrong code last time. You want to be using 'useSeoUrls' => true.

Does that make more sense? Let me know :).
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Google Custom Search and CMSB

Hi, Ross.

I've added the code to this page - http://www.yallaf1.com/stories.php - but the Google search still can't seem to find any of the headlines for these articles.

Kind regards,
Nigel Gordijk

Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net