How to hide the am and pm fields in Timeline view?

  • Kotisivutohtori
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 5 months ago #104661 by Kotisivutohtori
Hi,
we would like to be able to edit the views a bit more. Like timeline page, we want to hide the am and pm fields. Those are english and not really usable here.

Also we would like to show "Details" button on the timeline and NOT the button for the event-creators website. We want the user to go to event-page first and not let the user to go to another website first. HOw to change this?

I don't see anywhere options to edit the views. Please advise!
- Anne

Greetings,
Anne

www.kotisivutohtori.fi

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

More
8 years 5 months ago #104700 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to hide the am and pm fields in Timeline view?
Hi Anne

1. For not showing am-pm, you can go to Events Booking -> Configuration, find the config option Event Date Format, by default it is m-d-Y g:i a. You can change it to m-d-Y G:i for example

Do the same for Time format config option, it is g:i a by default, change it to G:i would help

See php.net/manual/en/function.date.php for list of parameters can be used

2. For not showing the other buttons, unfortunately, you will have to customize the code. The file you need to customize is components/com_eventbooking/view/common/events_timeline.php

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc