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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
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