Crossdomain Wrapper Autoheight: Difference between revisions

From Joomdle
Jump to navigationJump to search
No edit summary
mNo edit summary
Line 4: Line 4:


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


'''Moodle:'''
'''Moodle:'''

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, "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