Skip to end of metadata
Go to start of metadata

The Widget macro, or Widget Connector, allows you to embed multi-media content from other web sites into your Confluence page.

It supports content such as:

On this page:

Usage with the Macro Browser

To insert the Widget macro into a page using the Macro Browser,

  1. Open the Confluence page or blog post that you want to edit, then click the 'Edit' button.
  2. Click the Macro Browser icon on the toolbar. The macro browser window will open.
  3. Scroll through the list of macros to find the one you want. Alternatively, start typing the macro name into the search box at the top right of the macro browser. Macros with a matching name will appear in the main pane.
  4. Click the desired macro.
  5. Set the macro parameters to your requirements. If desired, you can preview these changes by clicking 'Refresh'.
  6. Click 'Insert' to add the macro onto the page.

(tick) You can also insert macros via autocomplete. For more information, see Using Autocomplete in the Rich Text Editor.

Once you've found the Widget macro and have added the required parameter values, click 'insert' to add it to your page.

Usage with the Wiki Markup Editor

Just type the word 'widget' in curly brackets, and give it the URL (web address) of the thing you want to display.

If the web-widget alias is enabled on your Confluence site, you can use web-widget instead of widget. See below.

Parameters

Parameters are options that you can include in Confluence macros to control the content or format of the macro output. The table below lists relevant parameters for this macro.

Parameter names are different in the macro browser and in wiki markup. Below we show the macro browser parameter names in bold text, and the equivalent wiki markup parameters in (bracketed) text. If we do not show any parameter name for the wiki markup, then you should leave out the parameter name and simply include the parameter value as the first parameter, immediately after the colon (:).

Parameter

Required

Default

Description

Web Sites Widget URL
(url)

yes

 

This is the URL provided by the external web site for embedding content from that web site onto another web page.

Pixel Height (Value Only)
(height)

no

 

Specify the height of the display, in pixels (default) or as a percentage of the window's height. For example, to specify a height of 200 pixels:

This code also specifies a height of 200 pixels:

This code specifies a height of 10 percent of the window's height:

Pixel Width (Value Only)
(width)

no

 

Specify the width of the display, in pixels (default) or as a percentage of the window's width. For example, to specify a width and height of 200 pixels:

This code also specifies a width and height of 200 pixels:

This code specifies a width of 10 percent of the window's width:

Live Example of Flickr Photos

This example shows the Widget macro in action. It displays all photos from Flickr with the tag 'Atlassian'.

What You Need to Type
What You Will Get

Live Example of Google Gadget

This example shows the Widget macro in action. It lets you play with a Google Gadget, Gadzi's Monkey Virtual Pet.

What You Need to Type
What You Will Get

More Examples of Macro Code

Google Gadgets

You will need to find the URL for the Google Gadget you want to display.

Here is one way to find a gadget's URL:

  1. Go to the Google Gadgets directory.
  2. Find the gadget you want then click its name, such as 'Spider'.
  3. The gadget's summary page will open. Copy the URL from your browser's address bar. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

You can also use the URL of the 'add gadget' page. The page is called 'Add "gadgetx" to your iGoogle page':

  1. There are a couple of ways to get to the 'add gadget' page:
    • Click a '+Google' button underneath the gadget when displayed on a page somewhere.
    • Or click 'Add Stuff' on your iGoogle page.
  2. Copy the URL from your browser's address bar. The URL would look something like this one:

Here is an example of the Widget macro code for embedding a Google Gadget:

Widgetbox widgets

You will need to find the URL for the Widgetbox widget you want to display.

Here is one way to find a widget's URL:

  1. Ensure you are logged in to Widgetbox and that you are viewing the Widgetbox Gallery.
  2. Find the widget you want then click its name, such as 'cyber-pet'.
  3. The widget's summary page will open. Within the Get Widget section, click the Atlassian Confluence icon . The Widgetbox Add to Confluence dialog box appears, containing the URL required for the Widget Macro.
    (info) If you cannot see this icon, click the more... link to reveal it.
  4. In the Widgetbox Add to Confluence dialog box, click the Copy button.
  5. Copy the URL from your browser's address bar. The URL looks something like this one:
  6. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Widgetbox widget:

YouTube

You will need to find the URL for the YouTube video that you want to display.

To find a YouTube video's URL:

  1. Go to YouTube and search for the video you want.
  2. Click the title of the video, such as 'Wikis in Plain English'.
  3. The video's summary page will open. Copy the URL from your browser's address bar. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a YouTube video:

MySpace Videos

You will need to find the URL for the MySpace video that you want to display.

To find a MySpace video's URL:

  1. Go to MySpace Video and search for the video you want.
  2. Click the title of the video, such as 'Glacier Creek Confluence Time Lapse'.
  3. The video's summary page will open. Copy the URL from your browser's address bar. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a MySpace video:

Google Video

You will need to find the URL for the Google video that you want to display.

To find a Google video's URL:

  1. Go to Google Video and search for the video you want.
  2. Click the title of the video, such as 'An Evening With Wiki Inventor Ward Cunningham in Conversation'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Google video:

Yahoo Video

You will need to find the URL for the Yahoo video that you want to display.

To find a Yahoo video's URL:

  1. Go to Yahoo Video and search for the video you want.
  2. Click the title of the video, such as 'Wiki Technology Trend: Past, Now and Future'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this:
    (info) If you are unable to obtain a unique URL from your browser's address bar, click the envelope (Share) icon on the lower section of the video screen and copy the contents of the Link field.
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Yahoo video:

Dailymotion Video

You will need to find the URL for the Dailymotion video that you want to display.

To find a Dailymotion video's URL:

  1. Go to Dailymotion and search for the video you want.
  2. Click the title of the video, such as 'Wiki Technology Trend: Past, Now and Future'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this:
    (info) If you are unable to obtain a unique URL from your browser's address bar, click Menu at the lower right section of the video screen, select URL & Embed Code and copy the contents of the Link field.
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Dailymotion video:

Episodic

You will need an Episodic user account if you want to create and distribute videos via Episodic.

To embed an Episodic video onto a Confluence page:

  1. Find the video and copy the URL from the address bar of your browser. The URL looks something like this:
  2. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding an Episodic video:

Vimeo

You will need to find the URL for the Vimeo video that you want to display.

To find a Vimeo video's URL:

  1. Go to Vimeo and search for the video you want.
  2. Click the title of the video, such as 'The Wiki Show - Allison the Russian High Kicker'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Vimeo video:

Metacafe

You will need to find the URL for the Metacafe video that you want to display.

To find a Metacafe video's URL:

  1. Go to Metacafe and search for the video you want.
  2. Click the title of the video, such as 'Wikis In Plain English (How To)'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Metacafe video:

blip.tv

You will need to find the URL for the blip.tv video that you want to display.

To find a blip.tv video's URL:

  1. Go to blip.tv and search for the video you want.
  2. Click the title of the video, such as 'River cruising on the Rhine'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a blip.tv video:

Viddler

You will need to find the URL for the Viddler video that you want to display.

To find a Viddler video's URL:

  1. Go to Viddler and search for the video you want.
  2. Click the title of the video, such as 'Gliffy Diagramm in Conflu...'.
  3. The video's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Viddler video:

Flickr

You can embed a slide show of photos from Flickr by supplying a URL that specifies one of the following:

  • Photos with a specific tag.
  • Photos belonging to the photostream of a specific Flickr user.
  • A set of photos as defined by the Flickr user.
  • A user's photostream starting at a specific photo.

If you want to do something else, we suggest that you try any Flickr URL. It should work.

Below are some examples of the Widget macro code for embedding Flickr images.

Flickr Photos with a Specific Tag

This example displays a slide show of Flickr photos that are tagged with the word 'Atlassian'.

Flickr Photos from a Specific User

This example displays a slide show of photos from the Flickr photostream of user 'Atlassian'.

Flickr Photos from a Specific Set

This example displays a slide show of Flickr photos from the set 'Melbourne Cup - November 2008' created by user 'Atlassian'.

A Specific Flickr Photo

This example displays a slide show of photos from the Flickr photostream of the user 'Atlassian', starting with a specific photo.

Skitch.com

You will need to find the URL for the Skitch image that you want to display.

To embed a Skitch image onto a Confluence page:

  1. Go to Skitch.com.
  2. Find the image and copy the URL from the address bar of your browser. The URL looks something like this:
  3. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Skitch image:

Twitter

Use a Twitter link in the Widget macro to display a dynamic list of the latest tweets sent by a user or matching a Twitter search.

To display the latest messages from a Twitter user, add the user's Twitter link as a URL in the Widget macro.

The example below will display Mike Cannon-Brooke's Twitter messages:

To display the latest messages resulting from a Twitter search, add the Twitter search link as a URL in the Widget macro.

  • Make sure you use the supported format of the search URL:
    The following format is not supported:
  • The '#' tag is not supported (not even in its URL-encoded form %23).

Format:

The example below will display the most recent tweets containing the word 'AtlassianDragons':

FriendFeed

To display the latest messages from a FriendFeed user, add the user's FriendFeed link as a URL in the Widget macro. For example:

BackType

To display the latest blog or website comments from a BackType user, add the user's BackType widget link as a URL in the Widget macro. For example:

SlideShare

You will need to find the URL for the SlideShare presentation that you want to display.

To find a SlideShare presentation's URL:

  1. Go to SlideShare and search for the presentation you want.
  2. Click the title of the presentation, such as 'Using JIRA & Greenhopper for Agile Development'.
  3. The presentation's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a SlideShare presentation:

SlideRocket

You will need to find the URL for the SlideRocket presentation that you want to display.

To find a SlideRocket presentation's URL:

  1. Log in to SlideRocket and go to your library of presentations.
  2. Copy the 'web link' for the presentation you want to display. This will give you a URL that looks something like this one:
  3. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a SlideRocket presentation:

Scribd

You will need to find the URL for the Scribd presentation that you want to display.

To find a Scribd presentation's URL:

  1. Go to Scribd and search for the presentation you want.
  2. Click the title of the presentation, such as 'My Sea Friends Coloring Book'.
  3. The presentation's summary page will open. Copy the URL from the address bar of your browser. The URL looks something like this one:
  4. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Scribd presentation and displaying it with a height of 600 pixels:

Google Docs Presentations

You can embed presentations from Google Docs, but not other document types. You will need to find the URL for the Google Docs presentation that you want to display.

To find the URL of a Google Docs presentation:

  1. Publish your presentation in Google Docs.
  2. View your published document, then copy the URL from your browser's address bar. The URL will look something like this:
  3. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Google Docs presentation

Google Calendar

You can embed a Google Calendar into your page and to do this, you will need to add the URL for the Google Calendar that you want to display.

To find the URL for a Google Calendar:

  1. Log in to Google Calendar.
  2. In the calendar list on the left side of the page, ensure the appropriate calendar is selected, click the down-arrow button next to the calendar name and then select the Calendar settings option.
    (Alternatively, if available, click the Manage Calendars link at the bottom of the calendar list and then click the name of the appropriate calendar.)
  3. In the Calendar Address section, click the HTML button. A pop-up message with your calendar's public URL appears.
  4. Copy the URL from this pop-up message. The URL looks something like this:
  5. Paste the URL into the Widget macro code on your Confluence page.

Here is an example of the Widget macro code for embedding a Google Calendar:

Wufoo HTML Form Builder

To display an HTML form built in the Wufoo HTML Form Builder, add the form's link as a URL to the Widget Macro. For example:

Dabble DB online database builder

To display a shared page built in Dabble DB, add the page's link as a URL to the Widget Macro. For example:

(info) The Widget Macro supports shared Dabble DB view and form pages. You can insert a Dabble DB data entry form into a Confluence page. On the same page or another page, you can use a a Dabble DB view to display data submitted via the form.

Get Satisfaction social support application

To display a feedback form for a Get Satisfaction community, add the community or company link as a URL to the Widget Macro. For example:

About the Web-Widget and Widget Macros

Confluence supports web-widget as an alias for widget. Your System Administrator can enable or disable one or both these macro names. The alias is useful for Confluence sites which use Adaptavist's Community Bubbles plugin, to avoid conflict with the 'widget' macro supplied by that plugin.

If the web-widget alias is enabled on your Confluence site, you can use web-widget instead of widget in all the examples above.

Troubleshooting

If the URL given in the Widget macro does not work, the Widget macro displays an icon and the base URL. The icon will be linked to the full URL given in the macro code.

For example, the following code:

will result in an image like the one below:

example.com
RELATED TOPICS

Take me back to the Wikis Help Guide.