When creating a calendar event it is not possible to set a time for event without selecting a date. This results in the date appearing twice in the Event List Display. Is there a way to just add event times without the date?
I was looking for the exact same. Did you find a way somewhere else?
Mikkel
I just css it out or change the template to only show the time.
Hi, have you got an example. I looked, but as I am not a coder i couldn’t figure which bit to change.
Unfortunately, it’s not possible to CSS out the date part because the full date string is what gets rendered. It can be done with a custom template. Copy /concrete/blocks/event_list/view.php and put it in /application/blocks/event_list/templates/just_times/view.php and change line 71 to be
<?= $service->formatTime($occurrence->getStart()) . ' – '. $service->formatTime($occurrence->getEnd()) ?>
Hi mhawke, thanks for your suggestion.
I setup the custom template as you suggested and then renamed the original view.php file to disable it as a test. This broke the page with errors, so I had to restore the original name to the view.php file.
It works if i change the original view.php file. However, it does not work as a custom template. I am obviously missing something about how it reads the custom template location.
Make sure caching is completely OFF especially the ‘Overrides Cache’ at Dashboard/System and Settings/Optimization/Cache and Speed Settings. If that is on, concrete never looks for your new custom template. Once you turn ‘Overrides Cache’ off and concrete finds your custom template, you can turn it back on again.