Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

ModelAdmin and Frontend Integration


Reply


2 Posts   1608 Views

Avatar
teejay

Community Member, 63 Posts

21 March 2009 at 9:41pm

Hi guys. I have played a little bit around with model admin, and yeah I think its a really cool feature. I have just on problem. How can i display my data on a page in the frontend ?

THX a lot

Thomas

Avatar
teejay

Community Member, 63 Posts

21 March 2009 at 9:53pm

Ok ok think first before posting. Just create a new page and add a custom query to the controller

function TestQuery (){
   $list = DataObject::get('Product');
   return $list;
}

<% control TestQuery %>
   <p>$Name ... $Category.Title</p>
<% end_control %>

and it works like a charm