Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 - CSS and JS resources
    • Source
  • Fields
    • Field

Example:

...

  • 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
Code Block
languagehtml/xml
<?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>

Children Display