I recently stumbled upon a quick interesting tip in one of our internal blogs which I thought would be extremely valuable to share externally. The tip documents how to embed the Lotus Connections search into the navigation for WebSphere Portal. And by looking at the code snippet below, this could also serve as a launching pad to embed Connections search into other pages regardless of the technology behind them.
So here's our goal:
The following code snippet was added into the Portal JSPs:
<%-- Renders the search widget in the banner --%> |
In this case, c.connectionsUrl and c.connectionsUrlProxied point to the absolute URL of the connections server and the same but proxied through the WPS AJAX proxy. We generate the values of these at JSP execution time from a config variable in WAS admin console, but of course you can hard-code these if you wish. In our case the URLs look something like this:
c.connectionsUrl = "http://connections.company.com"
c.co nnec tion sUrl Prox ied = " /wps /pro xy/h ttp/ conn ecti ons. comp any. com"
Thanks to the guys at ISSL for doing this.