This website uses cookies to ensure you get the best experience. Learn More.
OpenSocial Gadgets: Custom Preferences UI
In an earlier post I demonstrated how to add OpenSocial Gadgets as first-class citizens within Liferay. In this post I'd like to show you how we have created a custom preferences UI.
This sample gadget has three preferences: pref1, pref2, and pref3.
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Multiple SetPref - Iframe">
<Require feature="setprefs"/>
</ModulePrefs>
<UserPref name="pref1"
datatype="string"
default_value="0" />
<UserPref name="pref2"
<UserPref name="pref3"
<Content type="html">
...
</Content>
</Module>
To access our custom preference UI, go to "Configuration" :