which file holds print_navigation($navigation) function?

which file holds print_navigation($navigation) function?

by Steven Clark -
Number of replies: 3

Hi, we're calling Moodle into an iframe on our intranet with automatic logging in via Active Directory. That all works fine. Unfortunately breadcrumbs bounce us out of the iFrame back to full page view of Moodle. It seems to be related back to

onclick="this.target='_top'"

which is on each breadcrumb link (I think).

My question then is which Moodle file has the print_navigation($navigation) function? I know this is a bad way to go as we'll need to revisit this after each upgrade but this would be a needed short term fix, at least.

Could anyone steer me to the directory address of that function?

Or, perhaps it could be build_navigation($navlinks);

Average of ratings: -
In reply to Steven Clark

Re: which file holds print_navigation($navigation) function?

by Steven Clark -
seem to have found it in weblig.php (slaps forehead)... resolved
In reply to Steven Clark

Re: which file holds print_navigation($navigation) function?

by Mathieu Petit-Clair -
Picture of Core developers Picture of Moodle HQ Picture of MoodleCloud team Picture of Plugin developers Picture of Testers
In Admin -> Server -> HTTP (/admin/settings.php?section=http), there is a setting "Frame name" that could possibly be adjusted to something that would work for you.

I understand an iframe doesn't quite behave like a real frame, but I would give it a try anyway..

mat
In reply to Mathieu Petit-Clair

Re: which file holds print_navigation($navigation) function?

by Steven Clark -

Hi mat, thanks that worked perfectly. I just had to go rewrite what I'd stripped (and forgot to save).

A much better solution. Definately resolved now.