[opencms-dev] Mapping two elements to Title property
Alexander Kandzior
alex at opencms.org
Wed Sep 26 11:18:17 CEST 2018
Hi
> At the moment I partially solved using Test element:
>
> <mappings>
> <mapping element="Test" mapto="property:Title" />
> </mappings>
> <defaults>
> <default element="Test" value="%(currenttime)%(no_prefix:: )%(value:Titolo[1])" resolveMacros="false" />
> </defaults>
This is the best way to do a double mapping. You can only map the value of one field to the Title.
> but with this solution %(currenttime) macro prints date/time in millisecond and not formatted date.
Sorry but the %(currentime) macro gives you the current time in milliseconds without formatting. There is no macro that gives you a formatted time.
Kind regards,
Alex.
-------------------
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180926/d8e48c97/attachment.htm>
More information about the opencms-dev
mailing list