<< MyWidgets just got better - Option to set default widget double-click action | Home | How the new iPhone OS may expand the use of Lotus Traveler >>

MyWidgets just got better - Option to specify a custom widget icon for sidebar

Please note: The following is from the release notes of Notes 8.5.2 so I don't take credit for writing this. Lotus Notes 8.5.2 is in beta and there are no guarantees that the features described here will be in the final product that IBM ships.

Power users and administrators can add a new viewImageUrl attribute to the palleteItem element in a widget's extension.xml definition to specify a custom icon to use in the sidebar view/title bar for that widget. The viewImageURL attribute value must be a URL to the desired image, for example:

viewImageUrl="http://my.server.com/myImage.ico"
Example widget XML syntax is shown below:
<?xml version="1.0" encoding="UTF-8"?>
<webcontextConfiguration version="1.1">
<palleteItem allowMutlipleSidebars="true" 
    contributeToSideshelfOnStartup="false" 
    id="1140471160" viewImageUrl="http://my.server.com/myImage.ico" 
    imageUrl="http://www.google.com/favicon.ico" 
    providerId="com.ibm.rcp.toolbox.web.provider.WebServicesPalleteProvider" 
    title="Google Search" url="http://www.google.com/" >



Avatar: Chris Miller

Re: MyWidgets just got better - Option to specify a custom widget icon for sidebar

Interesting, hasn't that been there all along but simply modifying that line in the xml? I did it for the Custom Blogger Search widget http://planetlotus.org/6d5588
Avatar: Mikkel Heisterberg

Re: MyWidgets just got better - Option to specify a custom widget icon for sidebar

Could be or it could be "the case of the missing documentation"... :-) You are right that you have been able to set the icon for a while for plugins at least but I think this goes to Notes widgets as well. If nothing else it makes the widget list look better.
Avatar: Chris Miller

Re: MyWidgets just got better - Option to specify a custom widget icon for sidebar

Yes it is in the widget I created. You were able to edit the XML and then sent that back up as the widget code for the sidebar. Otherwise it grabs the URL string favicon or Notes icon if a Notes one.

Add a comment Send a TrackBack