I am trying to change the myoverview block in the theme. I actually don't want it. But to simply (I thought) things I thought I would keep it and just override it with my content which is just display content/html/flat html with a background image for that section. I am using the boost theme.
I see that some people have tried this (I think) like here: https://moodle.org/mod/forum/discuss.php?d=363840
But I want to make sure that I am not missing something.
I can accomplish what I want by creating theme/boost/template/block_myoverview/main.mustache and putting my html in there. It shows up and overrides the default courses past/present/future stuff.
But when I try to add "<img src='' alt=''>" to theme/boost/template/block_myoverview/main.mustache the src is blank as seen in the view source. The alt text shows up.
I have added $OUTPUT->image_url('my_image_name', 'theme') to the layout file for layout/colums2.php. When I primt out the context and kill it before the my dashboard loads I see the correct URL objectfor the "my_image_name" context value. So this told me that theme/boost/template/block_myoverview/main.mustache was not using that layout file.
I don't want to mess with block/myoverview. So I created classes/core/output/block_myoverview/renderer.php and classes/core/output/block_myoverview/main.php and mimiced what was in block/myoverview only added my data object for $OUTPUT->image_url('my_image_name', 'theme') here. Still the changes are not shown. I cannot even detect that these are being used.
Am I missing something here? How can I add or where do I add the context variable for my image so that my theme/boost/template/block_myoverview/main.mustache picks it up?
Thanks a lot everyone!