Updatabe Sections / Split page updatable areas??

5 posts by 3 authors in: Forums > CMS Builder
Last Post: January 17, 2008   (RSS)

Re: [nikkijones] Updatabe Sections / Split page updatable areas??

On my site you can update the main stories and the call numbers on the right column. Is this something you are taking about. Here is the site. http://www.palmyrafire.com Let me know Glenn
Glenn Rauchut (Owner) Emergency Designz

Re: [grauchut] Updatabe Sections / Split page updatable areas??

Hi Glenn,

Thanks ever so much for your reply and congrats on a great site!

It seems to be just what i am after but i can't quite tell how you've done it - can you point me in the right direction?

Cheers,
Nikki [:)]

Re: [nikkijones] Updatabe Sections / Split page updatable areas??

By Dave - January 16, 2008

Hi Nikki,

Glad to hear it's going so well!

Yes, you can actually have multiple viewers on a page. You just create another "list viewer" for news viewer and include the code where you want it displayed.

A few tips with this. If your page is getting really crowded you can put the code for the "news list" or whatever section it is in another file and include it with a php tag like this:

<?php include "newsList.php"; ?>

Also, if you wanted to show just the top 3 news items you'd do the following:

- Remove the prev/next page links if you don't want those
- set $options['perPage'] = 3; to show only 3 results
- set $options['pageNum'] = 1; to show first page only
- set $options['where'] = 1; to not filter results

The one other thing with multiple viewers, sometimes variables will overwrite each other. Don't worry about that unless it happens (you'll get an error) but if it does, you can just rename them. For example, instead of:

list($listRows, $listDetails) = ...

You might use:

list($newsRows, $newsDetails) = ...

And replace those where ever they are in the page.

Hope that helps (and makes sense!), any other questions just let me know.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Updatabe Sections / Split page updatable areas??

If you need further help shoot me an email and I can try to help you on the layout. Email is emergencydesignzdotcom@comcast.net Thanks Glenn
Glenn Rauchut (Owner) Emergency Designz