remove "All Day" in agenda view

Permalink Browser Info Environment
Hi -
is there a way to remove the words "ALL DAY" next to an event in the Agenda view -- however if someone selects a start /end times show the respective times?
THe upcoming template works this way- it doesn't show the words "ALL DAY" but shows start/end times if selected.
i hope i am making sense here...
some events in this website i',m doing are happening sometime during the day - but not all day .. . some have times.

thanks

Type: Discussion
Status: Archived
oaknshield
View Replies:
mkly replied on at Permalink Reply
mkly
Hello,
I'm not sure if I fully understand you.

Are you saying that the Agenda View is showing All Day even if "All Day" is unchecked?

Best Wishes,
Mike
oaknshield replied on at Permalink Reply
oaknshield
hi
Actually its showing correctly. if i click all day it shows "ALL DAy" in the Agenda view.
I wanted to remove the words ALL Day from agenda view. it looks wierd.
BUT if there is an event with a time i would like that to show.

the upcoming view template works this way. It doesnt show the words "ALL DAY" in an all day event, but shows start/end time if it is an event that has that. However i dont want the upcoming template as i need to show today's event.
i hope i m not sounding fussy....

this website im doing is a political website they have meetings every week,they dont have (know) times but everyonme knows its after work sometime, they use facebook to show times but still need it on website. All day looks like the meeting starts at 6AM and finishes 12pm
mkly replied on at Permalink Reply
mkly
Ok, you just mean if it's an All Day Event you just want to show the Event and not "All Day" next to it. That seems reasonable.

That said, it is a bit complex to pull it out.

You could override the model by copying
/packages/calendar/models/calendar_event.php

to
/models/calendar_event.php

Then changing around like #78
if ($this->isAllDayEvent()) {
  return t('All Day.');
}

to
if ($this->isAllDayEvent()) {
  return '';
}


Not sure, but might be worth a shot.

Best Wishes,
Mike
oaknshield replied on at Permalink Reply
oaknshield
Excellent - - - it worked
cool..... thanks
mkly replied on at Permalink Reply
mkly
Glad to hear it.

Best Wishes,
Mike
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.