Hide End Date

  • Nora Latiff
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 weeks ago #44499 by Nora Latiff
Hide End Date was created by Nora Latiff
Hi,

May I know how can I hide Event End Date at the Category Default Layout page?

Thanks.

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

More
10 years 2 weeks ago #44525 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide End Date
Hi Nora

Look at the file components/com_eventbooking/views/common/events_default.php, find the code below, remove it and It should work well.
Code:
if ($event->event_end_date != $nullDate) { ?> <tr class="eb-event-property"> <td class="eb-event-property-label"> <?php echo JText::_('EB_EVENT_END_DATE'); ?> </td> <td class="eb-event-property-value"> <?php echo JHtml::_('date', $event->event_end_date, $config->event_date_format, $param) ; ?> </td> </tr> <?php }

Regards,

Tuan
The following user(s) said Thank You: Nora Latiff

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

  • Nora Latiff
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 week ago #44558 by Nora Latiff
Replied by Nora Latiff on topic Hide End Date
I discover by leaving the event end date to blank will also hide the end date without need to modify the code.

Thanks. :)

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

More
10 years 1 week ago #44559 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide End Date
Yeah. That is the correct way. I thought you want to display end date on other places, that's the reason I suggested you to edit the code :D .

Tuan

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

Moderators: Tuan Pham Ngoc