Dear community,
I'm currently looking to get a way to let content editors enter some html +
freemarker code in a component called "custom content".
I create a component linked to a dialog with 2 controls (1 text and 1 editCode)
and this component is linked to a template script.
The goal is to let the editors pasting some html and insert a call to a text
property in the editcode control…
Example =>
Dialog:
- myText = "a titlte"
- editcode = "<div>${content.myText}</div>"
Template script:
${content.editcode} ==> Html not rendered, freemarker not rendered
${cmsfn.decode(content).editcode} ==> Html rendered, freemarker not replaced
??? ==> How to render Freemarker that comes from a dialog ???
The final goal is to let them choose a product and render the properties of
this product as they want...
Thanks for your help,
Benoit Poncelet
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=5af252a4-c9d3-4c12-acd1-bf944771b8aa
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------