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
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
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
[font "Verdana"]Thank you! Erin
Re: [erinm356] Multiple viewers on filtered detail page
By ross - April 30, 2009
Thanks for posting that file. I see what you are doing now :).
The problem you are running into is that by default, detail viewers check the URL to see if you've specified a record number. It's always the last number in the URL.
Your first link doesn't have anything in the URL so it just loads the first record from each of the sections you listed.
The second link does have a record number but it only applies to one of your sections and not the others. Basically, it's trying to find record 5 in all three sections but the second two probably don't have a record 5.
Make sense so far?
What we need to figure out now is if you wanted to load a specific record from the second two sections or if it's ok to just display the first one all the time.
Still with me? Let me know what you think and we'll go from there.
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
Re: [erinm356] Multiple viewers on filtered detail page
By ross - April 30, 2009
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