I have the following code:
<sly data-sly-use.link="${'core.impl.view.tools.LinkUtils' @ path=properties.targetURL}"></sly>
I want to concatenate properties.linkType
to properties.targetURL
.
Any ideas how it can be done? I've found examples on the net but they don't seem to work for my use case.
That depends on what kind of string concatenation you have in mind:
${properties.targetURL + properties.linkType}
<sly data-sly-test.concatenated="${'{0}{1}' @ format=[properties.targetURL, properties.linkType]}"></sly>
${properties.targetUrl}${properties.linkType}
<sly data-sly-use.link="${'core.impl.view.tools.LinkUtils' @ path=properties.targetURL, type=properties.linkType}"></sly>