MyCalendar

Month, Week, and List calendar for displaying events on your site.

Back to MyCalendar Support

KurtJensen
KurtJensen

Was wanting to mark current day in month calendar today and came up with this solution:

Page Markup

<style>
      table.mycal { width: 800px;}
</style>
{% component 'Events' %}
<div style="padding:5px;">
{% component 'Month' events = MyEvents dayprops = MyDayProps %}
</div>

Page Code

function onStart()
{
$y = date('Y');
    $m = date('m');
    $d = date('d');

     $this['MyDayProps'] = [
        $y => [   // Year
            $m => [    // Month
                $d => [ // Day
                    // You can add a CSS class to the day indicator in the calendar.
                    'class' => 'yellow'
                ],
            ],
        ] 
    ];
}
pragneshpanchalofficial
pragneshpanchalofficial

Hi KurtJensen,

i am using this but is not working. & also i want to display calender in norwegian language.

what should i do?

Last updated

1-2 of 2