Am trying in yootheme ZOO app to enable the rating element ONLY when the date element passed the today date but i cant find a way to get the item_id. If I try for example 277 everything is working, but how i can get the specific item id for each page?
I added those lines in the beginning of /media/zoo/applications/page/elements/rating/tmpl|rating.php
$app = App::getInstance('zoo');
$item = $app->table->item->get(277);
$element_id = "ffc8051a-fa18-4444-916c-bfbd74e2cb4e";
$element_value = $item->getElement($element_id)->getElementData()->get('value');
$eventdate = $element_value;
$now = date('Y-m-d H:i:s');
if (strtotime($eventdate) > $now) :
echo "bla bla";
endif;