Iframe Macro
Allows you to add an iframe in the page content. |
Type | XAR |
Category | |
Developed by | xwiki:XWiki.ThomasEveilleau |
Rating | |
License | GNU Lesser General Public License 2.1 |
Table of contents
Description
Allows you to add an iframe in the page content.
Usage
After you have installed the macro page, you can use the macro in any document in your wiki, either via the WYSIWYG editor, or by writing code like this in the wiki editor:
No iframe support for your browser. Bummer!
{{/iframe}}
Editing an existing iframe in the WYSIWYG editor can be a bit tricky because bringing up the edit dialog for the macro is not easy - one has to click inside the macro, but not its iframe contents, It is easier if the macro is shown in its "collapsed" form (nor showing its contents) by pressing the "Enter" key when focussing in the macro, or select "Macro" > "Collapse all" from the toolbar.
Parameters definition
Name | Optional | Allowed values | Default value | Description |
---|---|---|---|---|
URL | no | string | none | URL of the website you want to display in your iframe |
Name | yes | string | iframe | Name of the iframe |
Width | yes | int +px or percentage +% | 100% | Width of the iframe |
Height | yes | int +px | 500px | Height of the iframe |
Example
Result
Installation
You can import the attached *.xar file via the XWiki Adminstration, in the "Import" section.
Afterwards the macro should be ready to use in any document.