My Courses in MM

Re: My Courses in MM

by Juan Leyva -
Number of replies: 1
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

I've found two erros:

lang: {
component: "moodle"
}

is invalid it should be:

lang: {
component: "core"
}

And also, define(templates, function (sectionsTpl, contentsTpl, folderTpl, mimeTypes, participantsTpl, participantTpl) { should match with the templates set you define before, so it should be:

define(templates, function (participantsTpl, participantTpl, sectionsTpl, contentsTpl, folderTpl, mimeTypes, mycoursesTpl) {

 

Find attached the correct file

In reply to Juan Leyva

Re: My Courses in MM

by y h -

Hi, I modified the code and no more errors but actually the result is not what I wanted because it gives me mycourses followed by contents and participants and I can't click on any of them what I wanted is like this (I want to have the list of courses (second picture) when I click on mycourses with content and  participants for each of them the same way it's displayed in the main page in your moodle mobile):

 

Do you have any suggestions or anyone else at least about my way to develop the plugin because what I did and already mentioned and attached is not giving me the result I want.

Thanks in advancesmile