"event list" block - how to retrieve the topic name

Hi everyone,

I’m making a custom template view for the “event list” block.
I unsuccessfully spent many hours figuring out how to retrieve the topic name of the events.

Thanks for your help, it is always strongly appreciated !

I think you have to get to this object and then call this method:

1 Like

I finally made it work with this code

$topics = $event->getAttribute('event_topics');
foreach ((object) $topics as $topic) {

            echo $topicID.': '.$topicName;
1 Like