How can I change search viewerUrl

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 7, 2011   (RSS)

By (Deleted User) - March 7, 2011

Hello,

I currently have a search page on my site with the following:


$searchTables['blog'] = array(
'viewerUrl' => '/blogs/blog.php',
'titleField' => 'title',
'summaryField' => 'normal_content',
'searchFields' => array('title','normal_content','iphone_content'),);


However I rewrite all my urls to remove the ? and php file info. I link to these urls with custom written url and num as:

<a href="http://www.mydomain.com/blogs/<?php echo $blogs['url'] ?>-<?php echo $blogs['num'] ?>"><?php echo $blogs['title'] ?></a>

How can I get the search page to include the url-num info instead of sending to:

/blogs/blogs.php?7

Thanks Jono

Re: [jonoc73] How can I change search viewerUrl

By Jason - March 7, 2011

Hi,

Could you attach your search page so I can take a look at the code you're using?

Thanks
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] How can I change search viewerUrl

By (Deleted User) - March 7, 2011

Sent the php file to you via email.

Thanks Jonathan