Metas

From WidgetAvenue Wiki

Jump to: navigation, search

Widget metadata can be stored inside a specific file which can be called using the _meta parameter. All parameters used by the widget can be specified in the metadata file.Parameters set in the metadata file have priority over those defined in the url of the widget.


Syntax

The metadata file has to be stored as xhtml, in microformat form. It is possible to store metadata:

  • at the root level of the body tag: metadata will apply to all platforms
  • inside a div with className="[platform code]": metadata will apply only to this platform

Here is an example of metadata file:

<body>

	<!-- General metadata -->
	<div class="title">Wikipedia</div>
	<div class="description">Make a search in Wikipedia</div>
	<div class="thumbnail">http://www.widetavenue.com/wdg/loaders/common_preview.jpg</div>
	<div class="list_install">goo,uwa,pgf,msf,wwg,fbk,mac,msv,yho,bad,stn</div>


	<!-- iGoogle metadata -->
	<div class="goo">
			<div class="description">Make a search in Wikipedia from your iGoogle Pag</div>
	</div>				
</body>

Class Attributes

Class Attributes used in the metadata file can have the name of all parameters relevant to the widget.

Things to watch for

  • thumbnail must be of a certain size to avoid "this is not a valid gadget package" within vista sidebar. 200x200 png works ok
Personal tools