Get day name in timeline view?

  • spitjack
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 2 months ago #111188 by spitjack
Get day name in timeline view? was created by spitjack
I'm not sure of the variable to use, but other than getting the day name of each date in timeline view, I've got a serious override going. Here's a markup from the wireframe. (And now you know why I was asking earlier about a PL language package for this component. :whistle: )


__
a 'spit' is a rod upon which savory food was roasted, turned in ancient times by a worker called a 'jack', a middle English word for an ordinary laborer (eg jack of all trades, steeplejack, lumberjack). Today, this job is usually referred to as a 'pitmaster'.
Attachments:

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

More
7 years 2 months ago #111190 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Get day name in timeline view?
Hello

I don't really understand this question. In that view, there is multiple events displayed, so there would be many different days. So exactly what's the day name you want to get?

Tuan

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

  • spitjack
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
7 years 2 months ago #111250 by spitjack
Replied by spitjack on topic Get day name in timeline view?
Whatever day of the week (Sunday, Monday, etc.) that the date happens to be (June 12, 2018, for example, is a Monday - so we would like to show 'Monday' in with that date)

__
a 'spit' is a rod upon which savory food was roasted, turned in ancient times by a worker called a 'jack', a middle English word for an ordinary laborer (eg jack of all trades, steeplejack, lumberjack). Today, this job is usually referred to as a 'pitmaster'.

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

More
7 years 2 months ago #111269 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Get day name in timeline view?
Look at the file components/com_eventbooking/view/common/tmpl/events_timeline.php, you will see this line of code:

<?php echo JHtml::_('date', $event->event_date, 'Y', null); ?>

Change it to:

<?php echo JHtml::_('date', $event->event_date, 'l', null); ?>

and it should show the value you want there

Tuan

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

Moderators: Tuan Pham Ngoc