Custom calendar event attributes within page template

Permalink
Hi Need some help.
How do I use custom attributes from calendar events in custom page templates

Online i saw this: $event->getAttribute() but it isnt working.

I don't want to use the calendar event block. I just want to echo each attribute value out to a page template?

Please Help.

 
povatanu replied on at Permalink Reply
povatanu
Hello,

To grab events attributes into page templates you need to add the attribute "Event Details" or "Page Event" with selected event.
In the page template code you can get event attribute using this example code for event attribute "presenters" :

$event_details=$c->getAttribute('event_details');
$presenters=$event_details->getAttribute('presenters');

Best regards,
Lucian