iGoogle developer blog: live <b>gadget</b> previews in the iGoogle directory

IGoogle gadget directory just got better. Users can now interact with a gadget to the directory before adding you to their page. Check out a few examples such as the Google News or hot trends Google gadgets.

Their gadgets to have live preview. Gadgets that use content view = "Default" already have a live preview in the gadget directory. Thinking of you, view = "Default" can match supported each view of the container. Also, if the content element specifies the view attribute in a gadget, has treated equally as if view = "Default" were present. Until now were the only views that were supported on iGoogle home and canvas; Keep in mind is the smaller version and canvas is the larger version.

Some gadgets are different map for adapted to home and canvas views. If your gadgets do this, you can the XML specification gadget add a unique look for the preview or reuse an existing content item update.

For gadgets with an element
In this case, you can simply add preview, so you will view = "Home, canvas, preview".

For gadgets with
Here you can reuse the home view for the preview of your spec change view = "home, preview".

There are some other limitations on the way the preview works. A preview can OpenSocial calls - use, because the user has set not the OpenSocial permissions before you install the gadget. You may want to choose by a special preview version using some dummy data, or you can address in your gadget, the the live preview and keep up with a static screenshot.

The preview like all gadget is views cached. This relieves and speeds serving for users. But if you work on your gadget and see no last change in the preview, you can temporarily by adding the parameter caching disable "Nocache = 1" to the URL.

Gadgets as preview displays can not navigate to other views with requestNavigateTo(). If your gadget has a link which triggers, modify the view it doesn't work in preview.

If you think a preview is the right choice for your gadget not then enter the other views (home & canvas) and be sure that your screenshot makes a good job to convey what is do your gadget for users.

As always, come you to the iGoogle Developer Forum on live gadget thumbnails with other developers speak iGoogle.

Written by Rob Russell, developer relations

0 komentar:

Posting Komentar