Custom event field in Event category timeline view

  • jimwid
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #84758 by jimwid
Hi Tuan,

Just a quick request (hopefully)... id like to please know how to add custom event fields into event category timeline layout view ie (template/html/com_eventbooking/common/events_timeline.php (override path)) ive found the following code but its not displaying the extra fields, to save me further time, I thought you might be able to help me out :)
Code:
<?php if ($this->config->event_custom_field) { foreach($this->paramData as $param) { if ($param['value']) { ?> <tr> <td> <strong><?php echo $param['title']; ?></strong> </td> <td> <?php echo $param['value'] ; ?> </td> </tr> <?php } } } ?>

Also within the same view as above ((the category timeline layout) could you possibly please let me know how I can add a css class for each event indicating the category id, you already have this setup on the event details page and on the calendar (as you explain in this post for the calendar joomdonation.com/forum/events-booking-ge...-event-category.html )

Many thanks in advance!

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

More
9 years 8 months ago #84810 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom event field in Event category timeline view
Not sure what version of the extension you are using, but in latest version , the code is different;
Code:
if (isset($event->paramData)) { foreach ($event->paramData as $paramItem) { if ($paramItem['value']) { ?> <tr class="eb-event-property"> <td class="eb-event-property-label"> <?php echo $paramItem['title']; ?> </td> <td class="eb-event-property-value"> <?php echo $paramItem['value']; ?> </td> </tr> <?php } ?> <?php } }

Maybe you should try that new code, it should work

Tuan
The following user(s) said Thank You: jimwid

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

  • jimwid
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #84937 by jimwid
Many thanks Tuan, much appreciate! Although unfortunately its only showing extra field for the 1st event on the list.
To clarify, in timeline view, all other events except the 1st do not show custom event fields.

Many thanks in advance!

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

More
9 years 8 months ago #85006 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom event field in Event category timeline view
That's strange to me. Maybe you can submit a support ticket sending us super admin account of your site and the link to the page. We are going to check to see what's wrong and get it sorted for you

Regards,

Tuan

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

  • jimwid
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #85098 by jimwid
Ok sent, many thanks for this Tuan! :)

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

Moderators: Tuan Pham Ngoc