In order to create a gadget for the sciverse platform, you need to understand the structure of the gadget xml file. There are three main parts.
The Module Preferences section:
<ModulePrefs title=”MyAwesomeGadget” author_email=”you@your.domain”>
</ModulePrefs>
The user preference section:
<UserPref name=”secureAuthtoken” datatype=”hidden” />
Then the Content sections. You can have a content section for each type of integration point. See here for info on integration points. You can also combine integration point definitions by simply listing them (i.e. view=”profile, canvas”)
<Content type="html" view="profile">
<![CDATA[
<!-- The code for the view is here. -->
]]>
</Content>
When all of this is combined, you will have the basic skeleton for a gadget:
<?xml version=”1.0″ encoding=”UTF-8″?>
<Module> <ModulePrefs title="MyAwesomeGadget" author_email="you@your.domain"> </ModulePrefs> <UserPref name="secureAuthtoken" datatype="hidden" /> <Content type="html" view="profile"> <![CDATA[
<!-- The code for the view is here. -->
]]> </Content> </Module>
