Issues with Viewers on page

3 posts by 3 authors in: Forums > CMS Builder
Last Post: March 11, 2010   (RSS)

I am having a problem with my site using multiple viewers for the different sections. For example I have a page setup for the header, footer, body, and navigation. Everything works fine until I have a list viewer. you can see the list viewer but once I click on the item in the list I get an error on the next page. My problem page is http://www.gapoliceandfiregames.org/events.php I am able to see all Event Viewer details if I disable the menu.php page so I am not sure what I am doing wrong. Can someone please help me?

Re: [wthigginbotham] Issues with Viewers on page

Hi wthigginbotham,

Could you be a bit more specific about the components that are used on your page or attach your viewer to this post?

Please don't include any user name or password information in your post.

Sometimes the lines 'where' => whereRecordNumberInUrl(1),
or 'limit' => '1', in your get records call can lead to problems. You can try removing them one at a time and see if that makes any difference.

Nice looking page btw

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Issues with Viewers on page

By Chris - March 11, 2010

Hi wthigginbotham,

I think Jerry's probably right. I'm guessing you're doing a getRecords() to get the content for your header/footer/etc, and it's set to use whereRecordNumberInUrl. If so, it's a one-line fix.

Please post the full PHP source code for your events.php page and I can show you how to fix it.
All the best,
Chris