DataObject View

Updated: 29/03/2010 3:14pm

Downloaded 91 times so far

This is probably the most powerful and flexible element possible.

Specify your DataObject::get() query and render it in the template you provide!

The returned DataObjectSet is loaded in the variable "$Me".

Read the official DataObjectSet class documentation

the best way of using it is warpping it in a

<% control Me %> - loop in order to have acces to all the properties

Examples:

Custom Menu:

Query for Page

insert your filter and sort patameters

and render it as a menu anywhere you want with this template:

<ul>
  <% control Me %>
  <li><a href="$Link">$Title</a>
  <% end_control %>
</ul>
Access DataObjectSet methods directly

Query for Member

and show the number of registered users:

<p>$Count registered users</p>

Screenshot

DataObjectViewElement
Download

DataObjectView.tar.gz

Site made by dodat