Moodle as Tool

Moodle as Tool

Jan Munoz གིས-
Number of replies: 9

Hello,

I want to have some help. I have my Moodle installation as Tool, and everything is set up, but when I try to add the resources from the D2L platform, I get this error. My Moodle version is 4.0

The Platform is registered in the Moodle Tool. Deployment is also created.


And the Tool is registered in the Platform with links. Registration of Tool, Deployment is also completed.

Everything seems to be correct, but the error occurs using any type of link in D2L (Deep Linking Quicklink or DeepLinking Insert Stuff).

If I create a resource in D2L using the Basic Launch type of link the user will have access to the Moodle tool is able to complete the activity. I am using SCORM activities to test it.

Any help is appreciated it.

དཔྱ་སྙོམས་ཀྱི་སྐུགས་ཚུ།: -
In reply to Jan Munoz

Re: Moodle as Tool

Jake Dallimore གིས-
Core developers གི་པར Moodle HQ གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར Testers གི་པར

Hi Jan,

I'm assuming you're seeing that error during attempts to select content via deep linking, right? Basically, you're hitting code that deals with a normal resource link launch, not a deep linking launch (and in such cases the resourcelink.id property is required and hence the error). Have you configured the deep linking URL properly in D2L? This should be enrol/lti/launch_deeplink.php. Having no access to D2L I can't tell you where that would be unfortunately.

Hope that helps,
Jake

In reply to Jake Dallimore

Re: Moodle as Tool

Jan Munoz གིས-
Thanks for your reply.
Yes, I am getting the error trying to select content via Deep Linking. D2L offers two options, and both options are getting the same error. I've been playing with the configuration, this is the one that allows me to open Basic Links.

Sharing my configuration.
Configuration in D2L



Configuration Details


Configuration in Moodle

If you see any misconfiguration, please let me know about it.

Thank You.
In reply to Jan Munoz

Re: Moodle as Tool

Jake Dallimore གིས-
Core developers གི་པར Moodle HQ གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར Testers གི་པར
Hi Jan,

Like I said, I'm not versed in the inner workings of D2L, having no access to that myself. Surely, though, that platform would provide a means to select content using deep linking, and permit specifying the specific deep link launch URL. A quick Google leads me to these docs which may be of some help.

Really, the important thing to note when configuring any of this is that launch_deeplink.php is used for deep linking launches. That URL must also be registered as a redirect URI.

Hope that helps
Jake
In reply to Jake Dallimore

Re: Moodle as Tool

Jan Munoz གིས-
Thanks for your reply, Jake.
About the article, you attached. There are some assumptions in it.
- Your tool provider supports deep linking? - Since there is an LTI 1.3 communication registered, we can say yes for Moodle. Right?
- Support of the same extensions? - Same as before.

With any configuration on D2L, I continue getting errors.

Is there any collaboration on how all these parameters need to be set between platforms when Moodle is the Tool? I asking it before I also have access to a BB environment I can test.

Thanks.
In reply to Jan Munoz

Re: Moodle as Tool

Jake Dallimore གིས-
Core developers གི་པར Moodle HQ གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར Testers གི་པར
It sounds like they call deep linking an extension in that article. Anyway, yes, Moodle certainly does support this (in fact you can't certify for LTI Advantage Complete without it. It's part of what makes up LTI Advantage).

Regarding the parameters, I know of at least one person who has used D2L as the platform to launch into Moodle. Perhaps they (https://moodle.org/user/view.php?id=2445118), or others, will be able to share their D2L configuration here. I have nothing I can share. I've only used this with the open source platforms (Moodle, Canvas) personally.
In reply to Jake Dallimore

Re: Moodle as Tool

Jan Munoz གིས-

Thanks for your reply, Jake.

I do have access to a Canva installation I can test. How could I get the configuration you tested and try it.


Thanks again.

In reply to Jan Munoz

Re: Moodle as Tool

Jake Dallimore གིས-
Core developers གི་པར Moodle HQ གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར Testers གི་པར

Hi Jan,

It's been some time since I last tested Canvas but I essentially just created the docker container and then followed their documentation on how to configure tools.

Cheers

In reply to Jake Dallimore

Re: Moodle as Tool

Jan Munoz གིས-
Hello Jake,
Thanks for your help. Finally, I found a solution to the D2L integration.
As you mentioned earlier, "Really, the important thing to note when configuring any of this is that launch_deeplink.php is used for deep linking launches. That URL must also be registered as a redirect URI." - after many attempts, I was able to find the link and the right URLs.

Now I have a couple of other questions.
After all the integration, add the activities after the content selection.

 Based on the image I am sharing.



1. User does not have any role on Course. However, the log is saying that the user received a role. Role id 5 is the Student role.



2. Because no role is assigned, the user is not present in the Grades Report.
I read this post https://tracker.moodle.org/browse/MDL-67851but the fact that the log is showing the role assignation confuses me.



3. About the grades. No grade is received unless this command is run
php admin/tool/task/cli/schedule_task.php --execute="\enrol_lti\local\ltiadvantage\task\sync_grades"
Is there any other way to automate the grades to be sent?

Thank You very much
In reply to Jan Munoz

Re: Moodle as Tool

Jake Dallimore གིས-
Core developers གི་པར Moodle HQ གི་པར Particularly helpful Moodlers གི་པར Peer reviewers གི་པར Plugin developers གི་པར Testers གི་པར
Hi Jan,

That's good news. Regarding your additional questions:
  1. Re: role assignment, that's expected, and normal. The role is assigned at the activity level. You need to see role assignments at the activity level if you wish to see the student role (but rest assured, the role is being properly assigned)
  2. You're right about that. The grade book won't report those users which have roles assigned at the activity context, it would seem (I've checked as far back as 3.11 , and also on master). Feel free to report a bug report for that one to tracker.moodle.org (check whether it's been reported before though, of course)
  3. That's the scheduled task which should be automatically run as part of Moodle's background cron run. You can see the docs for how to set just how often this task runs, but you'll certainly need to make sure cron is running first. See https://docs.moodle.org/401/en/Scheduled_tasks and https://docs.moodle.org/401/en/Cron
Hope that helps,

Jake