Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: My Moodle 2.0.

Development talk:My Moodle 2.0

From MoodleDocs

Why CONTEXT_MYPAGE?

I don't see the need for CONTEXT_MYPAGE. I think it is fine if all of My Moodle is in the user context, just like all of the pages of the forum module are in CONTEXT_MODULE.

Of course, different capabilities for whether different bits of My Moodle are visible to a given user makes perfect sense.--Tim Hunt 18:54, 9 October 2009 (UTC)

With an extra context level, one could assign different roles to different sub-pages. If we just used the user context, then the permissions would apply to all of a user's My Moodle pages. It could also add the possibility of applying permissions to "'locked' pages that would always be the same layout for all users" ("sticky" pages?), which would not be associated with a specific user context. (Though I'm not sure if this is how Mike was planning on implementing that feature.) --Hubert Chathi 20:35, 9 October 2009 (UTC)

Can we do it all with blocks?

I think it would be architecturally very elegant, and maximally flexible, if the whole of My Moodle could be done as blocks. That is, My Moodle would just be a set of empty pages (subpages, or canvases, call them what you will) and all the functionality we might want there would be in the form of blocks.

I cannot immediately see why that would not work, however, I freely admit that I have not thought about this as much as you.--Tim Hunt 18:54, 9 October 2009 (UTC)