One of our partners has a requirement to integrate Lotus Connections 2.5 into WebSphere Portal, using the Web Application Integrator portlets.
As part of this, they want to force any links opened from within the various widgets to open in the same, rather than a new page/window/tab. In this way, they can use WAI across all of the Connections features and preserve the Portal navigation.
With a lot of help from Adrian Spender, who leads the IBM Dublin development team responsible for the Homepage and aggregation services, I was able to come up with a solution.
In my own environment, I chose to focus on the Communities widget that appears within the My Page subpage of Homepage (!).
The links that this iWidget generate are controlled by an Extensible Stylesheet Language Transformations (XSLT) file which, for Homepage, is located here: -
/opt/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/lc25Node01Cell/Homepage.ear/dboard.war/xslt
The XSL file ( communities.xsl ) contains the following two snippets: -
...
<xsl:template name="entries" match="/atom:feed">
<xsl:for-each select="atom:entry">
<div class="entry">
<div class="icons">
<a target="_blank">
<xsl:attribute name="href">
...
and: -
...
<h4>
<a target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="atom:link[@rel='alternate']/@href" />
</xsl:attribute>
...
Having backed up the file, it's then a simple matter to replace: -
<a target="_blank">
with: -
<a>
and save the file.
Once this is done, I restarted WAS to clear down any cached copies of the XSL ( in my case, I found it necessary to restart the entire cluster, and clear down /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/temp/ and /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/wstemp/ as well as clearing my browser cache ).
Once Connections was restarted, I logged back into Homepage, and confirmed that, when I click on a Community name under Communities -> My Communities, that the Community itself opened up in the SAME rather than a NEW page.
Again, credit to Adrian for his advice :-)
Geeking in technology since 1985, with IBM Development, focused upon Docker and Kubernetes on the IBM Z LinuxONE platform In the words of Dr Cathy Ryan, "If you don't write it down, it never happened". To paraphrase one of my clients, "Every day is a school day". I do, I learn, I share. The postings on this site are my own and don’t necessarily represent IBM’s positions, strategies or opinions. Remember, YMMV https://infosec.exchange/@davehay
Subscribe to:
Post Comments (Atom)
Reminder - installing podman and skopeo on Ubuntu 22.04
This follows on from: - Lest I forget - how to install pip on Ubuntu I had reason to install podman and skopeo on an Ubuntu box: - lsb_rel...
-
Why oh why do I forget this ? Running this command : - ldapsearch -h ad2012.uk.ibm.com -p 389 -D CN=bpmbind,CN=Users,DC=uk,DC=ibm,DC=com -w...
-
Error "ldap_sasl_interactive_bind_s: Unknown authentication method (-6)" on a LDAPSearch command ...Whilst building my mega Connections / Domino / Portal / Quickr / Sametime / WCM environment recently, I was using the LDAPSearch command tha...
-
Whilst building a new "vanilla" Kubernetes 1.25.4 cluster, I'd started the kubelet service via: - systemctl start kubelet.se...
No comments:
Post a Comment