sorting editable areas

Permalink
Hi im working on a local gig guide website its calledhttp://www.newcastlegigguide.com.au/index.php/major-gig-guide...

would like to be able to sort gigs by date. Any ideas would be much appreciated :-)

I have organized code like this:

<div id="second-page-sub-container">
<div id="second-page-sub-pic"><?php
$a = new Area('pic1');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>

<div id="second-page-sub-text">
<div id="second-page-sub-text-heading"><?php
$a = new Area('heading1');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>



<div id="second-page-sub-text2"><?php
$a = new Area('description1');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>
</div>


and then.......


<div id="second-page-sub-container">
<div id="second-page-sub-pic"><?php
$a = new Area('pic2');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>

<div id="second-page-sub-text">
<div id="second-page-sub-text-heading"><?php
$a = new Area('heading2');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>



<div id="second-page-sub-text2"><?php
$a = new Area('description3');
$a->setBlockLimit(1);
$a->display($c);
?>
</div>
</div>

so pretty much editable area1, area2, area3 etc.....

im pretty new to conrete5

Is there some sort of addon out there?

johnkidd
 
JohntheFish replied on at Permalink Reply
JohntheFish
If you make each gig a page, then use the page list with the 'by dates' addon, that gives the the sorting functionality you want.

Other page list templates give preview images and teasers/summaries.

So your solution would be combining aspects of these templates into a new template for the page list that list your gigs by date with pictures and teasers (or you could use a blog as the basis).

In general, doing something by creating a mass of application-specific areas in a page type is not a good design move. It ties your site to the specific page type and theme and gets in the way of swapping back to a proven default theme during an upgrade of concrete5 or for debugging.
johnkidd replied on at Permalink Reply
johnkidd
Thanks for the reply! Ill look into this some more. I tried looking for 'by dates' addon but was unable to find it.