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: [ross] Multiple Viewers on a page

By craig_bcd - August 3, 2009

Hey Ross -

Thanks! My thought was that it would default to one view when you loaded the page (perhaps view by date) and then in an interior nav option you would have "view by date" and "view by location" links allowing the user to click back and forth with one list on the page at a time.

That said, I don't have strong feelings either way, if they were both on the page and the interior nav bookmarked between them that could work too.

Thanks!

Craig

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