Multiple Viewers on a page

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

By craig_bcd - August 1, 2009

hey all -

I have searched the forums and am sure I can do this but the mechanics of it is escaping me.

I am building a new site with CMSB and I want to put multiple viewers on the same page, in this case a list of classes by date and a list of classes by location and allow the user to select. Both lists have the same datasource.

http://www.applewisefamily.com/classes.php

I just can't get my head around how to do that - any help is appreciated. Thanks

Craig

Re: [craighodges] Multiple Viewers on a page

By ross - August 3, 2009

Hi Craig

Thanks for posting!

You can definitely have two different viewers on the same page. Even if they are coming from the same section. I am curious about one thing though. When you say " allow the user to select", do you mean there will only actually be one list on the page at a time and then perhaps a link that lets the user click back and forth on how it's sorted? Or do you just want to have both lists displayed on the page at the same time?

Let me know :).
-----------------------------------------------------------
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: [craighodges] Multiple Viewers on a page

By Dave - August 3, 2009

Hi Craig,

There's a couple of ways to do this. The simplest is just to have two pages classesByDate.php and classesBylocation.php that identical just just have a different orderBy option so they sort differently.

Another way is to add some code as described in this post:
http://www.interactivetools.com/forum/gforum.cgi?post=73269#73269

Hope that helps!
Dave Edis - Senior Developer

interactivetools.com

Re: [Dave] Multiple Viewers on a page

By craig_bcd - August 4, 2009

Hey Dave -

That is perfect! - I like the order by code on the page you referenced. That is just what I want.

I love CMSB! As a developer it is a godsend.

Craig