This macro isn't bundled with any XWiki product by default.
Macro contributed by Thomas Eveilleau.
This macro cannot currently be downloaded separately.

Iframe Macro

Allow you to add an iframe in the content of a page

Usage

#iframe("url" "name" "width" "height")

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
URLnostringnoneURL of the website you want to display in your iframe
NameyesstringiframeName of the iframe
Widthyesint +px or percentage +%100%Width of the iframe
Heightyesint +px500pxHeight of the iframe

Example

#iframe("http://www.google.fr" "google" "" "")

Result

iframeresult.png

Installation

This a Velocity macro. Since it's not bundled by default you'll have to copy/paste the following code to use it:

#macro(iframe $url $name $width $height)
#if($name=="")
#set($name = "iframe")
#end
#if($width=="")
#set($width="100%")
#end
#if($height=="")
#set($height="500px")
#end
<iframe src="${url}" name="${name}" width="${width}" height="${height}"></iframe>
#end

Version 4.1 last modified by VincentMassol on 19/06/2008 at 22:05

Comments 0

No comments for this document

Attachments 1

Image
iframeresult.png 1.1
PostedBy: ThomasEveilleau on 09/05/2008 (96kb )

Creator: ThomasEveilleau on 2008/05/09 16:41
This wiki is licensed under a Creative Commons license
1.4.1.10194