- Posts: 4
- Thank you received: 0
Hide End Date
- Nora Latiff
- Topic Author
- Offline
- New Member
Less
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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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.
Regards,
Tuan
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
Less
More
- Posts: 4
- Thank you received: 0
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.
Thanks.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
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 .
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.