| Name | DailyMotion User Macro |
|---|---|
| Version | 1.0 |
| Product Versions | 2.x.x |
| Author(s) | Jean-Baptiste Catté |
| Price | Free |
Description/Features
Allows users to easily embed DailyMotion videos within Confluence
Installation
This is a user macro, which means you will need to add it manually to your User Macro's in the administration screen.
- Go to the System Administration screen
- Click on the 'User Macros' link in the left menu under 'Configuration'
- Select 'Create a User Macro'
- Name the macro 'youtube'
- Check the 'Macro has a body' box
- Paste the following into the text area and press 'Save':
<div> <object width="420" height="420"> <param name="movie" value="http://www.dailymotion.com/swf/x3z0rw"></param> <param name="allowFullScreen" value="true"></param> <param name="allowScriptAccess" value="always"></param> <embed src="http://www.dailymotion.com/swf/$body" type="application/x-shockwave-flash" width="520" height="420" allowFullScreen="true" allowScriptAccess="always"></embed> </object> </div>
Usage
The macro needs the DailyMotion video code in order to display the video. So, for example:
| YouTube video URL | http://www.dailymotion.com/video/x3z0rw_mika_music |
|---|---|
| Video code (from last part of URL) | x3z0rw |
| Tag to display video | {dailymotion}x3z0rw{dailymotion} |
Thanks
To Menso Heus and his YouTube user macro for the example.
