Advanced widget creation guide


Portaneo is using the Google widget standard.

Table of Contents



Your widget is an XML file :



The document has 3 parts, each will be fully explained below :

widget's properties


The ModulePrefs tag is used to define the properties of the widget :


widget's options


The UserPref tags are used to define the widget's options, that will give personalization to users. These are the options that show up when you click on "configure" button in the widget's header.



widget's content


The Content tag regroups the widget's HTML and javaScript code.


Templates



Examples


For the example overviews, copy / paste the codes in the widget tester

Hello World !


Colored box


Read an HTML file


Read and treat an XML file


Test your widget


After each widget modification, test it with the tester before asking for publication (tool available on the Advanced widget page). Ready? GO!