Multiple viewers on filtered detail page

7 posts by 2 authors in: Forums > CMS Builder
Last Post: April 30, 2009   (RSS)

By erinm356 - April 30, 2009

I have a detail page that has some additional viewers on it. All viewers work properly when I go directly to the page. However, when the detail page is filtered by linking to it from the list page, the two additional viewers do not display their content (I guess it's filtered out??).

News Detail page with no filter: http://www.steelfacts.com/news_detail.php
News Detail page with filter (same article): http://www.steelfacts.com/news_detail.php?SteelFacts-Partnership-Announced-5

On the page with the filter, Subscription Info and the copyright date are not displayed. Does anyone know how to get around this?

Thanks, Erin

Re: [erinm356] Multiple viewers on filtered detail page

By ross - April 30, 2009

Hi Erin

Thanks for posting!

Are other two viewers you have on that page list viewers or page viewers like the first one?

You can try adding:

'allowSearch' => '0',

to the second two viewers but if that doesn't work, could you post a copy of that whole page as an attachment for me to take a closer look at? Don't just post the code unless that's the only option as it's much harder to read that way.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Multiple viewers on filtered detail page

By erinm356 - April 30, 2009

The other two viewers are also detail viewers, but unlike the "News Detail" one, the other two have only one record. Where should I try adding the [font "Verdana"]'allowSearch' => '0' to?

[font "Verdana"]Thank you! Erin
Attachments:

news_detail.php 8K

Re: [ross] Multiple viewers on filtered detail page

By erinm356 - April 30, 2009

I'm following... the other two only need the first record. (They're single record sections.)

Re: [erinm356] Multiple viewers on filtered detail page

By ross - April 30, 2009

Hi Erin

All you should need to do then is remove:

'where' => whereRecordNumberInUrl(1),

from the second two viewers. That's the part that tells it to look at the URL.

Let me know how you make out with that.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/

Re: [ross] Multiple viewers on filtered detail page

By erinm356 - April 30, 2009

That worked beautifully. You are a genius, Ross! Thanks!