Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Date Format in category List

Date Format in category List 13 years 3 months ago #14597

  • BodgeIT
  • BodgeIT's Avatar Topic Author
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 88
  • Thank you received: 0
Hi,
I'd like to change the "-" seperator between start and end dates to "to".
I have dug into the very depths of most of dtregister and can't find it.

You guys seem to do things in a sophisticated way which I haven't yet figured out.

Could you point me to the right file?

Thanks
Gary

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

Date Format in category List 13 years 3 months ago #14600

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Gary,

Go to this file:
/administrator/components/com_dtregister/models/event.php

Search for the following functions:

function displaydatecolumn(

function displaydateheader(

function displaydatecolumnonly(

function displaydatecolumn_no_html(

function plugin_displayTitle(

In each function you should be able to easily find the hyphen that will look like this: " - "

For example, the first function named above you will find this:

$htmlrow1 ='<span>'.$start_date.' - '.$end_date.'</span>';

In between $start_date and $end_date you can see the hyphen to change. Make a similar modification in the 5 named functions and you should see this change all throughout the various places of the component where dates are displayed.

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

  • Page:
  • 1
Time to create page: 0.534 seconds