URL Filters
2 posts by 2 authors in: Forums > CMS Builder
Last Post: February 27, 2010 (RSS)
So I've been able to magically create a single php page viewer that displays different products based on the category that's chosen from a navigation bar using viewerPage.php?category=tables...
However now I want to add another viewer to the page for navigation purposes and the URL seems to be conflicting with the second viewer code...
here's the viewer code:
I want to apply the url search to the first viewer, but not to the second. thoughts?
However now I want to add another viewer to the page for navigation purposes and the URL seems to be conflicting with the second viewer code...
here's the viewer code:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "\\\\frigga/home/users/web/b2870/as.shopfurniture/admin/lib/viewer_functions.php";
list($itemized_productsRecords, $itemized_productsMetaData) = getRecords(array(
'tableName' => 'itemized_products',
));
?>
<?php
require_once "\\\\frigga/home/users/web/b2870/as.shopfurniture/admin/lib/viewer_functions.php";
list($collection_databaseRecords, $collection_databaseMetaData) = getRecords(array(
'tableName' => 'collection_database',
));
?>
I want to apply the url search to the first viewer, but not to the second. thoughts?
John Tedesco
Creative Director
JAM Graphics
Creative Director
JAM Graphics
Re: [jtedescojam] URL Filters
By Damon - February 27, 2010
Hi,
Try this code:
By adding 'allowSearch' => '0', that section won't be filtered by search queries.
Hope that makes sense. Try it out and let me know if you have any questions.
Try this code:
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
require_once "\\\\frigga/home/users/web/b2870/as.shopfurniture/admin/lib/viewer_functions.php";
list($itemized_productsRecords, $itemized_productsMetaData) = getRecords(array(
'tableName' => 'itemized_products',
));
list($collection_databaseRecords, $collection_databaseMetaData) = getRecords(array(
'tableName' => 'collection_database',
'allowSearch' => '0',
));
?>
By adding 'allowSearch' => '0', that section won't be filtered by search queries.
Hope that makes sense. Try it out and let me know if you have any questions.
Cheers,
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/