Using two viewers causing problems

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

Re: [andycal] Using two viewers causing problems

By Steve99 - August 3, 2011

Hello.

Change your load side bars code to this:

list($side_barsRecords, $side_barsMetaData) = getRecords(array(
'tableName' => 'side_bars',
'where' => 'num = "'.$sidebar.'"',
'limit' => '1',
));

That should fix it. Also, you only need to load the viewer library once.

Hope this helps.

Re: [andycal] Using two viewers causing problems

By Jason - August 3, 2011

Hi,

Another thing you can try is to turn off automatic searching on your query like this:

list($side_barsRecords, $side_barsMetaData) = getRecords(array(
'tableName' => 'side_bars',
'where' => 'num = "'.$sidebar.'"',
'limit' => '1',
'allowSearch' => false,
));


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/

Re: [steve99] Using two viewers causing problems

By andycal - August 7, 2011

Awesome, actually tried both of these just to see different ways of solving the same problem.

Cheers guys!