[opencms-dev] reading properties in formatter
DZoltan
dzoltan at gmail.com
Wed Oct 1 10:21:22 CEST 2014
if anyone is interested this is the solution I found for reading a property
of a structured content from inside a <cms:formatter>:
${cms:vfs(pageContext).property[cms.element.sitePath]['PropName']}
On Tue, Sep 30, 2014 at 6:15 PM, DZoltan <dzoltan at gmail.com> wrote:
> Hello,
> what is the simplest way to read a property of a structured content from
> inside a <cms:formatter>?
> I have a structured content that have a custom property but when the
> formatter loads and I try to read this property using <cms:property
> name="xyz" file="search"> it returns nothing.
>
> thank you.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141001/47a86f09/attachment.htm>
More information about the opencms-dev
mailing list