Skip to main content

Tweak HCL Connections Newsletter v2

The newsletter in version 2 format has one big disadvantage, we or our users lost the easy links to the topic, author profile or application.

When we look at the same information in Newsletter version 2, we can’t open the profile or the main blog/application, just the post is linked on the “Open” link.

The links are stored in the homepage database and are stripped away during the generation of the newsletter/notification message.

/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/cells/CellName/LotusConnections-config/notifications_v2/resources/commonUtil.ftl
#

<#-- Convert html fragment structures to text
 #              Strip all tags but preserve html entities
 #              Structural tags converted to white space to maintain word separation
 #              Link URL's are discarded
 # -->
<#function convertHtmlStructuresToText html>
        <#if html??>
                <#return __convertHtmlStructuresToText(html?string) />
        <#else>
                <#return html />
        </#if>
</#function>

This function is called to prepare the headings in the notifications. So we can remove the call, or just return the html after the call:

<#-- Convert html fragment structures to text
 #              Strip all tags but preserve html entities
 #              Structural tags converted to white space to maintain word separation
 #              Link URL's are discarded
 # -->
<#function convertHtmlStructuresToText html>
        <#if html??>
                <#return html /> # <.>
        <#else>
                <#return html />
        </#if>
</#function>

Replace the original line here with the highlighted code.

Now synchronize the nodes and test it again:

Christoph Stoettner
Author
Christoph Stoettner
I work at Vegard IT GmbH as a senior consultant, focusing on collaboration software, Kubernetes, security, and automation. I primarily work with HCL Connections, WebSphere Application Server, Kubernetes, Ansible, Terraform, and Linux. My daily work occasionally leads to technical talks and blog articles, which I share here more or less regularly.

Related

HCL Connections Newsletter v2 and Join Community requests

Since IBM Connections 6.0CR4 we can use a new newsletter format which needs still (now with HCL Connections 7) be activated separately in LotusConnections-config/notification-config.xml. Today some users asked how they can add other users to their private communities (visible in Community catalog) without manually adding them. As we investigated the question I had a look at the old notification format.

Upload Files via IBM HTTPServer (mod_ibm_upload) to HCL Connections

The last days I analyzed an issue, that file uploads to HCL Connections via IBM HTTPServer stopped working on a fresh installed 6.5CR1. Today I configured a Connections 7 and tried with it. I think that the official documentation is old in some important parts for the upload configuration. First of all my IBM HTTPServer 8.5.5.18 is not 32-bit like the documentation tells us: