Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
grouping list results

 

 


ChrisTitchenal
User

Apr 1, 2008, 12:54 PM

Post #1 of 4 (176 views)
Shortcut
grouping list results Can't Post

First I need to give a huge thanks to Dave and all the staff here for the wonderful support.

Now on to my question, I need to list out the standings of the football league. Pretty easy there are only 8 teams 4 in the east 4 in the west. My problem comes when I need them listed out I need the 4 teams ranked then a break the word East then the other 4 teams ranked.

I am wondering if the way we were displaying the players with that

Code
 <?php $maxCols=3; if (@++$count % $maxCols == 0): ?>

could be changed for this reason. My big hang up is how to have it pause, then have it put or I hard code it in, the word East or West then continue listing. I though about adding east and west to the cms list but I need that to be in a different font size and color then the rest of the listing.


Dave
Staff / Moderator


Apr 2, 2008, 9:33 AM

Post #2 of 4 (157 views)
Shortcut
Re: [ChrisTitchenal] grouping list results [In reply to] Can't Post

Hi Chris,

Do you have a mockup page that shows what you want this to look like?

And how can we sort or filter the records so we get all th eastern teams and then all the western teams?

If all you wanted to do was insert a new row (or some new HTML after 4 record you could use this:


Code
 <?php if (@++$rowCounter == 4): ?> 
<tr><td><b>East</b></tr></tr>
<?php endif; ?>


Hope that helps!

Dave Edis - Senior Developer
interactivetools.com


ChrisTitchenal
User

Apr 2, 2008, 9:54 AM

Post #3 of 4 (156 views)
Shortcut
Re: [Dave] grouping list results [In reply to] Can't Post

Hey Dave I knew there was some way to do that. To bad I did it the hard way Mad I used a page view and called each one of them up by record num. Works, and looks the way I need it to so everything is fine.

Thanks again

Chris


Dave
Staff / Moderator


Apr 2, 2008, 10:18 AM

Post #4 of 4 (154 views)
Shortcut
Re: [ChrisTitchenal] grouping list results [In reply to] Can't Post

Sometimes when you have just a few records and you need to place them precisely a certain way that actually is the simplest way.

In any case, glad to hear it's working now! :)

Dave Edis - Senior Developer
interactivetools.com

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4