When I try to influence the ordering of blocks or the visbility of blocks I always get the error in the picture below.
Please refer to this Post for more details on my intentions:
When I try to influence the ordering of blocks or the visbility of blocks I always get the error in the picture below.
Please refer to this Post for more details on my intentions:
Well, really you don't. The point of the blocks system is to give control to users (admins and any other user with the right permissions), not theme authors.
Hi Tim,
thanks a lot for your fitting comment. I agree, this should not be a theme feature, however, it would useful for the user to have a set of blocks he or she can assign to all pages in a region visually seperated from course or general blocks.
Is there a better place to issue feature requests?
Since this feature is agreed on in our organization, do you have any idea how to "hack" this, for now?
This might work, and is only a semi-hack.
The basic idea is to to create a special $page object that holds the user's blocks, and show those blocks on every page, in addition to the normal block.
The attached proof-of-concept script shows how to create another page object, and use it to display some other blocks. Of course, you need to do this in your theme layout files, not in a stand-alone script. You also need to make the '/theme/mytheme/userblocks.php' script where users set this up.
Hopefully this points you in the right direction.
There is a big issue with custom block regions in Moodle 2.3.1 so this idea of yours looks interesting, and may work better than the way we are doing things at present in themes.
Related Moodle Themes are:
Thank you so much.
Hi Tim,
can you help me once more: The question remains where one might want the user to to define his user-specific blocks. Naturally, this would be the my-moodle page. However, the blocks on the my moodle page are hidden.
Who could I ask how to read the blocks from the my moodle page?
thanks a bunch in advance,
Julian
This discussion has led to a feature requests here: http://tracker.moodle.org/browse/MDL-35786.
Great news! Lets hope it gets picked up and implemented! Thanks for taking the initiative and setting up MDL-35786 it will certainly get a +1 from me.
Thanks
Mary