Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:My Moodle 2.0: Difference between revisions

From MoodleDocs
(New page: ==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 CONTE...)
 
Line 5: Line 5:
Of course, different capabilities for whether different bits of My Moodle are visible to a given user makes perfect sense.--[[User:Tim Hunt|Tim Hunt]] 18:54, 9 October 2009 (UTC)
Of course, different capabilities for whether different bits of My Moodle are visible to a given user makes perfect sense.--[[User:Tim Hunt|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. --[[User:Hubert Chathi|Hubert Chathi]] 20:35, 9 October 2009 (UTC)


==Can we do it all with blocks?==
==Can we do it all with blocks?==

Revision as of 20:35, 9 October 2009

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. --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)