Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Re: My Courses in MM

$
0
0
par y h.  

I created a folder in plugins. In this one, I created main.js in which i put all the functions of the plugins "contents" and "participants". Also i copied to this folder all html files of both plugins. When I add this plugin in config.json, I got this error: Uncaught SyntaxError: Unexpected token < in this line in main.js: 

templates: {
"participant": {
model: "participant",
html: participantTpl },
"participants": {
html: participantsTpl },
"folder": {
html: folderTpl },
"contents": {
html: contentsTpl },
"sections": {
html: sectionsTpl },
"mimetypes": JSON.parse(mimeTypes)}}

Honestly, I need your help to know if my method is wrong and i shouldn't put the functions of the plugins "contents" and "participants" and i should put another functions but my idea was that when I click on mycourses another page will open and there all the courses will be listed in the same way of the main page in the original moodle mobile app with contents and participants.

Thank you for your helpsourire


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>