Crossdomain Wrapper Autoheight: Difference between revisions

From Joomdle
Jump to navigationJump to search
Created page with "Joomdle can integrate with 3rd party library iframe-resizer (https://github.com/davidjbradshaw/iframe-resizer) to allow for auto-height on multiple domain setup scenarios. To..."
 
No edit summary
Line 11: Line 11:
* Copy file moodle/auth/joomdle/js/iframeResizer.contentWindow.min.js to moodle/theme/YOUR_THEME/javascript
* Copy file moodle/auth/joomdle/js/iframeResizer.contentWindow.min.js to moodle/theme/YOUR_THEME/javascript
* Finally, add the new javascript file to your theme, by opening moodle/theme/YOUR_THEME/config.php and adding at the end:
* Finally, add the new javascript file to your theme, by opening moodle/theme/YOUR_THEME/config.php and adding at the end:
 
** $THEME->javascripts = array ( 'iframeResizer.contentWindow.min' );
$THEME->javascripts = array ( 'iframeResizer.contentWindow.min' );




After these steps, you should be able to have resizing iframe over different domains
After these steps, you should be able to have resizing iframe over different domains

Revision as of 12:20, 4 November 2017

Joomdle can integrate with 3rd party library iframe-resizer (https://github.com/davidjbradshaw/iframe-resizer) to allow for auto-height on multiple domain setup scenarios.

To use this, however, you will need to do additional configuration in Joomla and Moodle:

Joomla:

  • Enable option " Cross-domain auto-height" in Joomdle configuration in Joomla, in "Links behaviour" section.

Moodle:

  • In the file system, locate the folder of the theme you are using in Moodle.
  • Create, if it does not exists, moodle/theme/YOUR_THEME/javascript
  • Copy file moodle/auth/joomdle/js/iframeResizer.contentWindow.min.js to moodle/theme/YOUR_THEME/javascript
  • Finally, add the new javascript file to your theme, by opening moodle/theme/YOUR_THEME/config.php and adding at the end:
    • $THEME->javascripts = array ( 'iframeResizer.contentWindow.min' );


After these steps, you should be able to have resizing iframe over different domains