Can somebody tell me how to properly get the property [b]value [/b]of an
inherited (string) property?
[code][#assign visual = cmsfn.inheritProperty(content, "visual")]
Visual: ${visual!""}[/code]
does not give me the value, neither does [code]${visual?string!""}[/code] nor
[code]${visual.value!""}[/code]
[code]${visual.string!""}[/code] gives me something what looks like the path to
the property, but not the value:
[quote]Visual: property /mypage/visual[/quote]
[code]${visual.value!""}[/code] gives me:
[quote]Visual:
org.apache.jackrabbit.spi.commons.value.QValueValue@db251769[/quote]
How to get the value from the QValueValue object in a freemaker template? I
already googled for it, but [code]${visual.value.string}[/code] nor
[code]${visual.value.value}[/code] does not work.
Related topics I found on the web, unfortunately they don't provide an answer
to my problem:
https://wiki.magnolia-cms.com/display/DEV/Templating+-+Proposal#Templating-Proposal-Functions.1
http://stackoverflow.com/questions/25388572/magnolia-cms-property-inheritance/25419141#25419141
https://jira.magnolia-cms.com/browse/MGNLMIGRATION-157
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=a7585704-1d0b-41d7-bc9c-61a36f0bebd7
----------------------------------------------------------------
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]>
----------------------------------------------------------------