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: [Jason] How can I change search viewerUrl

By (Deleted User) - March 7, 2011

Sent the php file to you via email.

Thanks Jonathan

Re: [jonoc73] How can I change search viewerUrl

By Jason - March 7, 2011

Hi Jonathan,

The searchMultipleTables function only returns 3 fields, _title, _summary, and _link. So you won't be able t custom create your own URL's using this. However, if you edit your section and add url to your "Filename Fields" in the "Viewer Urls" tab, you might get the results you're looking for.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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