Hi all,
New to K2 after trying Seblod - this feels like heaven... ;)
I am trying to make a sub view for latest.php. Reading all events from a category, I want to filter out past events, sort on the event date, and then print a table.
I know where to edit in latest.php and I can get an array of all items, but I can't seem to get a proper date value.
First I got this from the $this->item object, which apparently is a string:
[extra_fields] => [{"id":"8","value":"1"},{"id":"1","value":"2012-07-15"},{"id":"2","value":"11"},{"id":"3","value":"1"},{"id":"4","value":""},{"id":"5","value":"Eucharistieviering"},{"id":"6","value":"P. Kalkhoven"},{"id":"7","value":"OLVOO"}]
Getting it in an array I did this:
$event[ "extra_fields" ] = K2ModelItem::getItemExtraFields($item->extra_fields);
and got this:
[name] => Datum
[value] => zondag, 15 juli 2012
How can I get the date value and not a formated date?
Thanks!
Jerry