Pour toutes questions sur nos formations Drupal, n'hésitez pas à nous contacter.
This module provides an API to render an iframe within a modal dialog based on the jQuery UI Dialog plugin. You should not install this module unless another module requires you to, or you wish to use it for your own custom modules.
It is an alternative to Popups API (Ajax Dialogs) which implements its own library and API to manage popup dialogs. On the other hand, the Modal Frame API is based on the jQuery UI Dialog plugin and it is specially built to deal with iframe elements with very little effort (and no particular AJAX requirements).
For themers, this module provides a default template for rendering child pages within modal frames (modalframe-page.tpl.php) that can be copied to the theme directory and customized to suit the particular needs of the site. It is also pretty easy to adapt the provided stylesheets to match the look of the site.
Requirements related to jQuery UI: jQuery UI (version 1.7.x). Note that you also need jQuery 1.3.x, currently provided by jQuery Update 6.x-2.x.
Highly recommended: onBeforeUnload API (enhances synchronization of parent/child windows). See reference: #669436: In search for alternatives to the unload event.
Builtin support for: Dirty Forms.
Modules using Modal Frame API: Modal Frame Contrib Package (includes mini-modules that implement the Modal Frame API to enhance the usability of a few day to day tasks in every Drupal site), Node Relationships, Modal Frame CCK Editor, Subnodes by Taxonomy.
Modal Frame API is pretty simple, but powerful at the same time.
The server-side API looks as follows:
onSubmit dialog callback that you can provide when opening the modal frame from the parent window.The client-side API looks as follows:
modalframe_close_dialog($args).modalframe_child_js() when generating pages for the modal dialog.The package also contains an optional module that can be used as an example. It is also recommended to check out the inline code documentation as it has a lot of information on how it all works.
Note for those interested in Drupal 7 support for this module: It seems this feature is being included in Drupal core itself. So, probably there will be no stable release of this module for Drupal 7 because it will be already there. :-D See: #517688: Initial D7UX admin overlay.
This module has been sponsored by Gamefilia.