Prezi User Macro

WE NEED YOUR HELP AND FEEDBACK

We are designing a more advanced Prezi Connector plugin to support embedding private Prezis. This plugin would provide tighter integration with prezi.com including authorization and sharing your private prezis with Confluence users or user groups. Further details are coming later.

Please send an email to info[at]meta-inf[dot]hu if you are interested in using a more sophisticated version of this plugin that allows you to embed private (e.g. company owned) Prezis in Confluence pages. Also please detail the features you need or would like to see.

We appreciate your contribution.

Introduction

Have you ever tried prezi.com? It is an awasome tool to build online, spectacular and professional presentations.
With a simple user macro, you can embed them in Confluence.

Public prezis only

As of now, this simple macro can only display public Prezi presentations.

 

Using the macro

The macro is called prezi.

It accepts two parameters:

  • url: The unique URL of the prezentation (mandatory), this is the link used to share your prezi
  • title: title of the prezentation (mandatory)

Prezi link - Where to get from

.
It is best to take the presentation URL from prezi.com. Open your presentation page, copy the link to your presentation.
Paste this link as URL parameter of the macro.

You can either enter the macro in the editor (e.g. in the wiki markup editor) or you can open the macro browser and select and configure the macro easily.

Example:
{prezi:url=http://prezi.com/hkuxznq1akuf/inbound-marketing-kit/|title=Inbound Marketing Kit}

It looks like this:

Create the macro in Confluence

It is extremely easy to create this macro in your Confluence instance. Just enter a few attributes in Administration \ User Macros.

Set attributes

Macro source

Enter the below code fragment as Template.

## @param url:title=Presentation url|type=string|required=true|desc=Link to your presentation at prezi.com
## @param title:title=Presentation title|type=string|required=true|desc=Title of your presentation at prezi.com
#if ($paramurl)
 #set ($preziUrl = $generalUtil.htmlEncode($paramurl))
 #set ($prefixLength = 17)
 #set ($pos = $preziUrl.indexOf("/", $prefixLength))
 #if ($pos==-1) 
 #set ($preziId = $preziUrl.substring($prefixLength))
 #else
 #set ($preziId = $preziUrl.substring($prefixLength, $pos))
 #end
<div class="prezi-player"><style type="text/css" media="screen">.prezi-player { width: 550px; } .prezi-player-links { text-align: center; }</style><object id="prezi_$preziId" name="prezi_$preziId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="550" height="400"><param name="movie" value="http://prezi.com/bin/preziloader.swf"/><param name="allowfullscreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="bgcolor" value="#ffffff"/><param name="flashvars" value="prezi_id=$preziId&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0"/><embed id="preziEmbed_$preziId" name="preziEmbed_$preziId" src="http://prezi.com/bin/preziloader.swf" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="550" height="400" bgcolor="#ffffff" flashvars="prezi_id=$preziId&amp;lock_to_path=0&amp;color=ffffff&amp;autoplay=no&amp;autohide_ctrls=0"></embed></object><div class="prezi-player-links"><p><a 
#if ($paramtitle)
 #set ($preziTitle = $generalUtil.htmlEncode($paramtitle))
title="$preziTitle"
#else
 #set ($preziTitle = '')
#end 
href="$preziUrl">$preziTitle</a> on <a href="http://prezi.com">Prezi</a></p></div></div>
#else
Prezentation URL not defined.
#end