cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robby Pelssers" <>
Subject RE: from wysiwyg-editor to database and/or nice html-output
Date Thu, 27 May 2010 10:29:35 GMT
In your jx template you can define something like:
<?xml version="1.0" encoding="UTF-8"?>
     <cinclude:include src="cocoon:/dbrecord/${recordId}"/>
And next you need to add the include transformer to that pipeline.
So you would end up with something like:
      <map:match pattern="dbrecord/*">
        <map:generate src="dbrecord.jx" type="jx"/>
        <map:transform type="cinclude"/>
        <map:serialize type=”xhtml”/>
Robby Pelssers
From: Bart Remmerie [] 
Sent: Thursday, May 27, 2010 12:13 PM
To: users
Subject: from wysiwyg-editor to database and/or nice html-output

One way or another, I can't get this working ... and I guess I'm overlooking an easy essential

in a CForm, I use an htmlarea-editor to allow users to create input with basic markup (bold,
underline, italic, ...)
When I store the information in a database, it looks like a nice html-snippet, something like

This is <span style="font-style: italic;"><span style="font-weight: bold;">a simple

What I'm struggling with is how to get this text integrated into a jx-page or in a CForm-field
with an output-state in the desired way:

Not with the markup visible
Not with the markup replaced by &lt; &gt; ...

But simply the text, with the markup applied (for the sample above partially bold and italic).

Someone must have done this before I guess.

In the application, it should allow the text to be read on the screen & used as basis
(template) for emails too.

Kind regards,
View raw message