I have some child pages (Concerts) set up and populated via the CMS, displaying via a Concerts.ss template. An example url would be /concerts/autumn-2010/.
I would like to display data from extra fields (already stored in the db) via a link on those pages to e.g. /concerts/autumn-2010/rehearsals, so I have a made suitable link in the Concerts.ss template:
<a href="$URLSegment/rehearsals/">Rehearsals</a>
Could someone possibly tell me where I go from here. I have a feeling it's renderWith but the following (in Concert.php) just gives me out of memory errors:
class Concert_Controller extends Page_Controller {
public function rehearsals(){
return $this->renderWith(array('Concert_rehearsals', 'Concert', 'Page'));
}
}
Many thanks.