Usage

A layout descriptor may be passed to the Viewer through a URL parameter.

The following URL, for example, loads the Viewer with a certain "summer" theme from example.com:

http://issuu.com/jesper/docs/gan_issuu?mode=embed&documentId=080311154822-183
d3d8334a544518a0d5e324f2543d4&layout=http://example.com/issuu/themes/summer/layout.xml

 

layout descriptor is typically stored in a file called layout.xml.
Below is an example of a simple layout descriptor written in IML describing the user interface for the Viewer:

<?xml version="1.0"?>
<viewer xmlns="http://issuu.com/viewer/1.0" backgroundColor="#111111">
 
 <skin source="skins.swf"/>
 
 <box direction="horizontal" horizontalCenter="0" top="15">
   <button action="pagePrevious"
     upState="#PreviousButton_up" overState="#PreviousButton_over"
     downState="#PreviousButton_down" disabledState="#PreviousButton_disabled"/>
   <button action="pageNext"
     upState="#NextButton_up" overState="#NextButton_over"
	 downState="#NextButton_down" disabledState="#NextButton_disabled"/>
 </box>
 
 <dropp left="0" right="0" top="50" bottom="15"/>
 
</viewer>

Note: You may refer to the Getting Started guide for detailed step-by-step instructions on how to configure and use a custom theme.

 

Contents