Re: [Jason] Listing alphabetically under A to Z headings
Hi, Jason.
This is the overall look and effect I'm going for -
http://app.kitchener.ca/services/default2.aspx - and this is my version -
http://www.wilmot.ca/a-z-services.php. I've only added a few records via CMSB for now, but all of the services that start with "A", for example, should appear under the "A" heading (Agendas, Animal Control, etc); Contact Us and Council should be listed under the "C" heading; and so on.
This has been set up as a Multi Record section in CMSB, and this is the display code I'm using (from the listing page code):
<?php foreach ($a_z_of_servicesRecords as $record): ?>
<p class="pAZListing"><a href="<?php echo $record['url'] ?>"><?php echo $record['service_desc'] ?></a></p>
<?php endforeach ?>
<?php if (!$a_z_of_servicesRecords): ?><?php endif ?>
At he moment this snippet of code only appears in the "A" section of the page. It will need to be placed under each letter heading, but I don't know how to get it to display only the relevant records that start with the same letter.
Cheers,
Nigel Gordijk
Common Sense Design: User-focused Web design
Tel: 001 519 342 5348 | Web: www.commonsensedesign.net