Tweak HCL Connections Newsletter v2

· by Christoph Stoettner · Read in about 2 min · (217 words)

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

Newsletter V1

21 05 19 164559 notes2 LhgdtCs1k7

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.

21 05 19 162946 notes2 NXWiGacf6z

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
...
# From line 391
<#-- 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 /> (1)
        <#else>
                <#return html />
        </#if>
</#function>
1Replace the original line here with this code.

Now synchronize the nodes and test it again:

21 05 19 164132 notes2 XkYju0kpxw