dojoType and Lightbox

XPages are great, but like most things to do with Notes and Domino over the years there are a few very frustrating restrictions. Here’s one that I’m hoping has got a work around that somebody knows.

SITUATION

We have got a website Content Management System developed in R6.5 which works very well, but could do with an XPages make-over. The system allows users to create and maintain website pages by placing and formatting text in a richtext field on a document. This can also include pictures that use Lightbox to click and expand. All very nice and a great example of how easy these things are in Notes/Domino.

ISSUE

We are converting the system to R8.5.2 but have stumbled over the Dojo lightbox functionality. Inserting the code into the system works very well and if we embed a picture to the xpage all the lightbox whizzy tricks work well. However, when we try to display the content created by the users it does not. We are simply adding the richtext field (bound to the document) onto the XPage but the pictures do not use the Lightbox functionality and simply open in a browser window.

PROBLEM

On looking at the code the problem is that the A HREF tag is being stripped of the “dojoType” setting. I have even tried putting placing some passthru HTML in the richtext field but that also gets altered by Domino (hardly passthru!!). If I put the identical link directly on the XPage it works fine, but if that link is passed to the XPage through the richtext field it does not work. If the link is put in as

a dojoType=“dojox.image.Lightbox” href="…

it is actually rendered as

a dojoType=“” href="…

QUESTION

Does anybody know why Domino is stripping out the dojoType parameter in the passthru HTML? Are we missing a parameter on the RichText bound field that would stop this from happening? All I have found from an extensive search of the web is a german guy who has the same problems.

http://atnotes.de/index.php?action=printpage;topic=49934.0

Many thanks for any light that anybody can shed on this “show-stopper” problem.

So, although the dojoType is specified in the A HREF link in the rich text field it is actually being rendered as

Subject: image rendering through a richtext control

SOLUTION :-)To make this work change the htmlFilter option on the All Properties - Basics for the Richtext control to “identify”. I do not yet know if there will be any other knock-on effects of this.

Hope this helps somebody out in the future.