Is it possible to show custom event fields in the frontend module

  • jythra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #142128 by jythra
Hello,

Is there a way (with a module override) to show the custom fields of an event in the Upcomming events module? How do I place them in the override?

- Rachel

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

More
3 years 9 months ago #142130 by Tuan Pham Ngoc
Hello Rachel

You will have to write code yourself to have the event custom fields displayed. What layout you are using to display upcoming events in the module? Let me know so that I can look at it and guide you with some code

Regards,

Tuan

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

  • jythra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #142132 by jythra
Hi Tuan,

I'v tried to change the default.php from the mod_eb_events and renamed that.

- Rachel

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

More
3 years 9 months ago #142133 by Tuan Pham Ngoc
Hi Rachel

You can use this syntax to display value of a custom field:

echo $row->field_speaker;
echo $row->field_name;

field_speaker, field_name is name of the event custom fields which you defined. Could you please try that?

Tuan

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

  • jythra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 9 months ago #142136 by jythra
YES! that works like a charm and was exactly what I was looking for!
Thanks!

- Rachel

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

More
3 years 9 months ago #142138 by Tuan Pham Ngoc
Great. Remember to move that modified file to template override so that it won't be lost when you update to future releases of the extension

Regards,

Tuan

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