[opencms-dev] Schema Default - advanced logic
Thomas Schmidt
t.schmidt at md-network.de
Mon Feb 15 13:12:30 CET 2021
Hello,
I tried a lot of combinations like:
%(value:substring(currentuser.firstname,1)), %(value:substring(currentuser.firstname,0,1)),
and many more (also with other bracket type) - but this has no effect - so I wonder what of XPath is actually supported (and where is the code for that) …
Thanks
BR
ThomasS
> Am 15.02.2021 um 12:28 schrieb Thomas Schmidt <t.schmidt at md-network.de>:
>
> Hello Anne,
> thanks a lot for your reply and for the good pointer.
>
> In the org.opencms.util.*MacroResolver code see a number of literals.
> I wonder how
> %(value:{XPath})
>
> Could be used. I was in hope that some of the basic XPath expressions might be possible. But I currently I don't find any hint for this in the code.
>
> Thanks
> Kind Regards
> ThomasS
>
>
>
>> Am 15.02.2021 um 09:56 schrieb Gebert, Anne <a.gebert at comundus.com>:
>>
>> Hi Thomas,
>>
>> perhaps a look at org.opencms.util.CmsMacroResolver.java may help you.
>>
>> Regards
>> Anne
>>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list