This page contains installation, registration, upgrading and uninstallation instructions for Mockups for XWiki.
The main Balsamiq Mockups help page is here.
Installing Mockups for XWiki requires administration priviledges and a restart of XWiki.
The process is fairly simple and should take less than 10 minutes.
The following instructions assume you have already installed XWiki 1.2 or later. If that is not the case please go to xwiki.org for instructions on how to download and install XWiki on your computer.
Note: "<xwiki-home>" below denotes your XWiki installation directory, and "xx.yy" stand for the minor version numbers of the file you downloaded.
com.balsamiq.xwiki.plugins.mockups.MockupsPluginWatch the commas and slashes, the list might look like this after you are done:
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.calendar.CalendarPlugin,\
...
com.xpn.xwiki.plugin.watchlist.WatchListPlugin,\
com.balsamiq.xwiki.plugins.mockups.MockupsPlugin
<mapping resource="mockups.hbm.xml"/>
<plug-in className="com.balsamiq.xwiki.plugins.mockups.struts.MockupsStrutsPlugin"/>
That's it! You can now start creating UI Mockups on any page page you have edit rights to. The 30-day trial period starts as soon as you install the product. During the trial, anyone with edit rights can add and edit mockups. If you bought a license, look at the Registration Instructions below.
During the trial period, anyone with edit rights can add and edit mockups. Once you register your Mockups for XWiki copy, only members of the BalsamiqMockupsEditors group will be able to do so, while everyone else will be able to view mockups but not edit them.
To register your Mockups for XWiki license:
To add a UI mockup to your page simply click on the "Add UI Mockup" button found in the "Balsamiq Mockups" panel:

This will take you directly to the Balsamiq Mockup editor. Once you are happy with your mockup, just select "Save and Close" from the Mockup menu, and you'll be asked to give it a unique ID. This is required and allows you to include more than one mockup on the same page.

Once you name your mockup you'll be taken back to XWiki, with your mockup placed at the top of the page. To move it down to your preferred location, just edit the page, find the #mockup("your_mockup_name") macro definition at the top, cut it, scroll down to where you want your mockup to be and paste. Save the page and you're done!
If you have editing rights on the wiki page that contains a mockup, you'll see a "edit this mockup" link right under the mockup image.

Simply click on the link and you'll be taken to the editor. Click "Save and Close" or "Discard changes" to go back to XWiki.
To remove a mockup from a page, simply edit the page, find the appropriate #mockup macro, delete it and save the page again. You might also want to delete the mockup's BMML and PNG attachment files from the page.
Each ui mockup is saved as two separate attachments, one for the PNG image and one for the BMML representation of the mockup. XWiki supports versioning of attachments, and Balsamiq Mockups takes advantage of it so that you can see how your mockup evolved over time, or roll back to a previous version.

This is a bit tricky but it can be done. Go to the attachments view for your page, find the mockup you want to roll back, get the BMML for the version you want to roll it back to and copy it. Now you can go back to the page, edit the mockup and import your old BMML via the "Import" dialog.
To move a mockup to a different location on a page you edit the page, find the #mockup("your_mockup_name") macro definition for the mockup you want to move, cut it, scroll down to where you want your mockup to be and paste. Save the page and you're done!
com.balsamiq.xwiki.plugins.mockups.MockupsPluginWatch the commas and slashes, the list might look like this after you are done:
xwiki.plugins=\
com.xpn.xwiki.monitor.api.MonitorPlugin,\
com.xpn.xwiki.plugin.calendar.CalendarPlugin,\
...
com.xpn.xwiki.plugin.watchlist.WatchListPlugin
<mapping resource="mockups.hbm.xml"/>
<plug-in className="com.balsamiq.xwiki.plugins.mockups.struts.MockupsStrutsPlugin"/>