You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

XML Specification

The XML gadget specification is based on the Atlassian Gadgets.

Implemented Tags

The implemented tags and corresponding attributes are:

  • ModulePrefs

    • title
    • width - "full" or "half" are the only options for now
  • Description
  • Content
    • type - "file" uses the file given in src, "html" uses the content in the tag (eg. ﹤Content type="html"﹥This is the content﹤/Content﹥)
    • src - relative filename or url
  • Sources
  • Source
    • type - "css" or "javascript"
    • src - relative filename or url
  • Fields - If the gadget uses fields, you can optionally add the field here to hide it from the main list. All viewing and editing of the field will have to be done through the gadget.
  • Field
    • slug
Example
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
    <ModulePrefs title="Contact Info" width="half" />
    <Description>This gadget adds a field editor for fields related to contact info (phone, address, ect).</Description>
    <Content type="file" src="template.html" />
    <Sources>
       <Source type="javascript" src="script.js" />
    </Sources>
    <Fields>
       <Field slug="6c-resourceholder-phone-main" />
       <Field slug="6c-resourceholder-phone-fax" />
    </Fields>
</Module>


  • No labels