Solved
Sightly Join with White spaces
Hi,
I need to join a string array with whitespaces.
I'm doing that this way:
${item.tagNames @ join=' '}But when it is printing it this way in the HTML:
tuna sushitypes
Is there any way to do that?
Thaks
Hi,
I need to join a string array with whitespaces.
I'm doing that this way:
${item.tagNames @ join=' '}But when it is printing it this way in the HTML:
tuna sushitypes
Is there any way to do that?
Thaks
I found a way:
1. Store it using data-sly-test
<div data-sly-test.joined="${item.tagNames @ join=' '}" data-sly-unwrap />2. Use the context='unsafe'
${joined @context='unsafe'}Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.