-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
I have a course hosted on a MoodleCloud site (the 'Tool' in LTI 1.3 speak) that is accessed from a customer's self-hosted Moodle (the 'Platform') as a course-level LTI activity.
When displayed on the Platform site, when logged in as a student the Moodle header bar (Home / Dashboard / My Courses etc) from the Tool site is still displayed so the student can navigate out of the course. I gather the correct behaviour is that this header bar should only be displayed for teacher and admin users logged in with LTI, but for students it should not be displayed.
I can use the force_embed=1 configuration in the LTI Tool settings on the Platform to hide the header for ALL users, however that's not ideal as this method also removes not just the site header bar but also the course left navigation block and course user menu, all of which should be retained for the student.
Response from Jake Dallimore in Forums was as follows:
Hi Mark,
You've just discovered a long standing limitation and perhaps a good candidate for future improvement.
With published activities, we force the page layout to embedded for student launches, and this works fine. With courses, we don't do this (we never have, even going back to before I ported the tool/provider to LTI1.3) so we'll fall back on the default 'course' layout in those cases (and yes, the header is shown in the course layout). FYI, you can see layouts here: https://docs.moodle.org/dev/Page_API#Base_theme_page_layouts.
I think, ideally, we'd have a layout that we could use for course publishing, which excluded site nav, but I don't think a layout like that exists yet. Might be one to create a tracker issue for (using "Publish as LTI tool" as the component, if you do).
Cheers,
Jake
https://moodle.org/mod/forum/discuss.php?d=467691