Hey
Iv got a module or managing activities with the following fields:
static $db = array(
'Name' => 'Text',
'Price' => 'Int',
'CategoryID' => 'Text',
'Type' => 'Text',
'Description' => 'Text',
'Parties' => 'Text',
'ImageURL'=>'Text'
);
everythings working fine on the admin side activities can be added, edited and deleted.
But what i want to do is loop through all the activities with a categoryId of 1, somthing like
<%control Activity %>
<p>$Name</p>
<% end_control %>
any ideas on how i would achieve this as i cant seem to use DataObject inside my page.php
Thanks