Show Event Custom Fields in Events page

  • Rusty
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 5 months ago #162142 by Rusty
Is there a way of showing specific "Event Custom Fields" in the Events layout?

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #162148 by David Unwin
Replied by David Unwin on topic Show Event Custom Fields in Events page
If you select fields in the 'Extra Information' in the event, they will show in the Event Details

Please Log in or Create an account to join the conversation.

  • Rusty
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 5 months ago #162149 by Rusty
Replied by Rusty on topic Show Event Custom Fields in Events page
Thanks, yes they're showing in the Event Details but I need them to show when all Events are listed in the Events layout (plural not singular)

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #162162 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Show Event Custom Fields in Events page
Hi Rusty

What layout you are using to display events ? Currently, event custom fields will only be displayed on default layout. If you want it to be displayed on other layouts, customization to the layout code would be needed

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Rusty
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
1 year 5 months ago #162169 by Rusty
Replied by Rusty on topic Show Event Custom Fields in Events page
Here's a link to the Events view:

leadershipexchange.gle.world/index.php?o...ents&id=0&Itemid=125

I want to show certain custom fields on this layout next to each event 
 

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #162172 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Show Event Custom Fields in Events page
You customized the layout too much, so honestly, I do not know what layout you are using.

Assume the object store the event data is $event, you can use the code below to display value of certain custom field:

echo $event->field_speaker;
echo $event->field_hours;

(Replace field_speaker, field_hours in the code above with name of the fields you want to display the value)

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc