i have some dataobjects linked to page type. i display these objects in the template, performing a simple control nameoftheobjects, and displaying them.
and this works. while displaying them, i need to perform a control on them, like "if a certain dataobject field is equal to some value, return true."
I plan to do this creating a function in the page controller. but how i can point to the current dataobject being displayed?
<% control nameoftheobjects %>
<% if checkontheobjects %>
do somtehing with it
<% else %>
do something else with it
<% end_if %>
<% end_control %>