Anyone?

Nick Stolwijk wrote:
Can someone confirm whether this will interfere with the Lucene indexer?

regards,

Nick Stolwijk

Dennis Dam wrote:
Hi Nick,

that's possible, but you will have to implement a custom binding class for that. The default binding class is

nl.hippo.cocoon.forms.binding.HTMLAreaBinding

You can use that class as a reference. If I understand correctly, you have to load the CData element from the source file, and assign the string value to the context node in the doLoad() method, and in the doSave() method you have to create a CData element and serialize the input DOM element to a string, and assign that to the CData element.

One potential drawback is that, if you write the html in a CDATA block, that text indexing in the repository might go wrong: the html tags are also indexed (something you won't want), or maybe the entire CDATA block is not indexed.. I'm not sure about this thought, Ard can you shed some light on this ?

regards,
Dennis


********************************************
Hippocms-dev: Hippo CMS development public mailinglist


********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to