Expose string property as booleans as well.
-------------------------------------------
Key: MAGNOLIA-3672
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3672
Project: Magnolia
Issue Type: Improvement
Components: core, freemarker
Reporter: Grégory Joseph
Assignee: Philipp Bärfuss
Fix For: 4.4.4, 5.0
Attachments: MAGNOLIA-3672.patch
Since there are many places/cases where we store boolean properties as string
properties in jcr (i.e a checkbox from a dialog), it's quite cumbersome to
convert those in FreeMarker.
Instead of what I'd expect to write: {code}
[#if content.myProperty]<p>Hello world</p>[/#if]
{code}one currently has to write something along these lines{code}
[#if content.myProperty!'false'=='true']<p>Hello world</p>[/#if]
{code}... which is admittedly annoying, awkward and downright ugly.
Here's a patch that shows we could expose strings as models of both strings and
booleans to FreeMarker
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------