Calendar Widget
Number of replies: 2
I'm developing a completely new dashboard for the moodle platform, so far I've gotten moodle to redirect to my new dashboard after authentication, but there's a few widgets that are missing from the original dashboard that my client wants to see in the new dashboard (mainly the calendar and private file widgets). I've looked at the /my/index.php file and it seems that these widgets are instantiated in the echo $OUTPUT->custom_block_region('content'); line, but when I look at it's implementation I still can't figure out how to create them. Any help will be greatly appreciated.
Re: Calendar Widget
Hi,
Those are blocks - so you would need to include them in your custom dashboard. I think (without digging) that the blocks that show on the standard dashboard are defined by what the user has added to the dashboard and the default dashboard - /my/indexsys.php.
Re: Calendar Widget
Awesome! Thank you. I wouldn't have figure it out if you hadn't called them "blocks". I was able to do the research after that and learned that moodle does have a function for creating blocks called blocks_add_default_system_blocks() at lib/blocklib.php