eventscalendar:day_view.after_title
Allows displaying any output after the event title in day view.
You need to have a working knowledge of Hooks before you get started.
Parameters
Name | Type | Description |
---|---|---|
$event |
parameter |
(object) The event object |
Boilerplate Code
Use the boilerplate code to start using the action, and add your own logic or echo output.
Clickfwd\Hook\Action::add('eventscalendar-day_view-after_title', function($event)
{
// Execute action or echo output
});
Examples
Add the value of a custom field after the event title
FWDHook::addAction('eventscalendar:day_view.after_title', function($event) {
// Retrieve the selected jr_city custom field value for the event
$city = $event->event->getSelectedText('jr_city');
echo $city;
}, $priority = 20, $arguments = 1);
Source Files
/eventscalendar/resources/views/site/components/event-day-view.blade.php