Hi all,
I thought I'd reach out to the developer community for some advice regarding a project I'm working on. A department at my college wants a piece of HTML code (a "widget") to appear on the front page of every new and existing Moodle course, and I'm wondering what strategy might work best to accomplish this. My first thought was to add a new HTML block to the front page of our Moodle site, embed the HTML code, and make it available site-wide on every page, but that means the block would be viewable on every single page which can be a nuisance. The widget should only appear on the course homepage and faculty should have the option of removing it if they wish.
Does anyone have any ideas on the best (and easiest) way to accomplish something like this? Maybe there's a way to do a modification of the existing core HTML block and/or some database hacks? I'd like to avoid having to scope out extra project time to build a block from scratch (unless that happens to be the best option). The information in this documentation is promising, but appears to require an actual block to be built from scratch for it to work: http://docs.moodle.org/23/en/Block_layout. Since the HTML block can be configured in so many different ways by each user, there doesn't seem to be any one unique configuration I could use.
Thanks for any suggestions anyone might have!
-Jeff