LTI not working when embeding

LTI not working when embeding

by Chris Mat -
Number of replies: 5

Hi,

I am loading a survey tool from one Moodle 3.2 instance to another using LTI. It works when loading in a new/exciting window but it doesn't work when 'embed/embed without blocks'. I have 'Allow frame embedding' on ob both sites.

Is there any extra settings I need to do/enable to have the embedding work properly?


Regards,

Chris

Average of ratings: -
In reply to Chris Mat

Re: LTI not working when embeding

by John Okely -

Yep allow frame embedding on the provider site should be all you need.

Are either of the sites using https? This can cause a problem if the consumer site is and the provider site isn't, because you can't embed insecure (http) content in secure content (https)

If you open the console of your browser can you see any errors? (An easy way to get to the console is to right click, inspect element, then click console)

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI not working when embeding

by Chris Mat -

Thanks John.

One Moodle was using SSL but the other was not. I enabled SSL on the other Moodle and it worked. That was very helpful. Thanks.

Now, is there any way to embed only the activity? I am not interested in showing the whole Moodle inside another Moodle. I can use the CSS display: none; to hide the header, footer, breadcrumbs and menu but I wonder if there's a better way or a setting I have missed.


Regards,

Chris

In reply to Chris Mat

Re: LTI not working when embeding

by John Okely -

When a student logs in, they will see only the activity and no header/menu.

A teacher needs access to the header and menus to do a lot of things, however if you don't want the teacher to see those either, set the custom parameters to "force_embed=1"

Average of ratings: Useful (1)
In reply to John Okely

Re: LTI not working when embeding

by Chris Mat -

Hi John,


This was really helpful. Thank you very much for your quick reply and for help.


Regards,

Chris