del.icio.us stuff
 

Using Zoomify in a Plone page

| Permanent Link | Locative

Today someone asked me how to put a Zoomify map image into a Plone page. Luckily I had been reading the McKay book on Plone recently and had some raw materials laying around so I could answer the question. Here's how...

You do have to be comfortable with going in to the ZMI and adding a Page Template. That's not particularly hard unless you're doing it for the first time. Keep the book handy!

You can't just open up a Plone page via the normal interface and add the Zoomify html because Plone doesn't let you use potentially dangerous elements such as <object> in a regular page. Instead, you have to set up a Page Template that uses the Plone main_template.

The main_template defines a lot of slots. Each slot represents part of the page that can be filled in or overridden. In order to put something into the main part of the page, we're going to fill the main slot.

Here are the steps:

  1. in the ZMI, add a Page Template. You have to supply the Id but can leave the Title blank. I used zoomify as my Id.
  2. Paste in the code I have posted here.
  3. Add your custom HTML inside the div element.

There's a zoomify example here and the viewable result is here, showing the Global Land Cover 2000 data set.

Note: The McKay book is also available as a PDF download. but to me it's worth buying a bound copy.

[Update: I had an "internal" URL for the example source links above... it's fixed now]

Comments

2006-10-24 12:55 | Posted by Allan
Update: It turns out that you can even keep all of the zoomify photo content in Zope/Plone. You just have to make sure that the URLs it expects work as expected. In particular, Zoomify wants to find an ImageProperties.xml file in the same directory as the images it uses. If that file is being served by Plone, it will have all of the navigation elements around it and Zoomify won't be able to parse it. One way around that is to use the ZMI and make the file using a DTML Document.
Comments are closed for this entry.
« March 2010 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
random stuff
Creative Commons License

Copyright 2006,2007 © Allan Doyle