how to not display the event end date

  • gilles
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 week ago #9132 by gilles
In the event display, how can i prevent the endate and cut-off date from displaying?

My even is just a one day event and "end-date" is somewhat irrelevant.

Thanks,
Gilles

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

More
13 years 1 week ago #9148 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: how to not display the event end date
Hi Gilles

- To prevent event end date display, you can simply leave it empty when you enter the event .

- If you want to remove event cut off date, you will need to leave it empty of modify the code alitle. The code is located in the file components/com_eventbooking/views/tmpl/default.php, looks at the code below and remove it :
Code:
if ($this->nullDate != $item->cut_off_date) { ?> <tr> <td> <strong><?php echo JText::_('EB_CUT_OFF_DATE'); ?></strong> </td> <td> <?php echo JHTML::_('date', $item->cut_off_date, $this->config->date_format, 0) ; ?> </td> </tr> <?php }

Regards,

Tuan

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

  • gilles
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 week ago #9154 by gilles
Replied by gilles on topic Re: how to not display the event end date
thanks for the continued, great support Tuan,

I thought I had tried to leave the fields blank. I tried again and it worked. Fantastic!

Thanks!
Gilles

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

Moderators: Tuan Pham Ngoc