SCORM full page width using Current window

When it comes to SCORM content, you have two options – Popup or Current window. As a rule we pretty much always use the Popup option, because it gives us the biggest viewing area for our content.

I was asked recently if it would be possible to open the SCORM activity in a new tab, rather than a popup window.

I could not get it to open in a new tab, but I did manage to get the content to display in the current window, without the pre and post regions. Basically full page width from the banner down.

The change I made does require one line to be added to the SCORM module. This is a change to core Moodle code. If you make the change, you need to manage this change carefully when it comes to upgrades.

 

scorm_1.jpg

The SCORM settings in Moodle – select Current window

 

scorm_2.jpg

Selecting the SCORM activity in the course will load the page below as per usual.

 

scorm_3.jpg

Once you click enter, the SCORM activity loads in the current window.

 

scorm_4.jpg

The page is full width, and the SCORM activity is shown without scroll bars.

 

I made the change to the /mod/scorm/scorm.php file.

The change I made was to include set_pagelayout and set it to “frametop” (line 111). I got the value frametop by looking at the config.php file of the theme I was using. In this instance I am using the Elegance theme.

scorm_5.jpg

mod/scorm/scorm.php

 

scorm_6.jpg

Elegance theme config.php page

Core changes are never a good idea, so be sure before implementing a change like this.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s