Converting JSTL core tags into Sightly
Hi,
I am very new to sightly and I need to convert the following code into Sightly.
<c:when test="${not empty properties.leftURL}"> --leftURL isn't a checkbox it is a field and I am checking that it has a URL in it
<c:choose>
<c:when test="${fn:startsWith(properties.leftURL, '/content')==true}"> --checking if it an internal or external URL
<a href="${properties.leftURL}.html" target="_parent"><img src="<%= leftImage %>" alt="image"></a>
</c:when>
<c:otherwise>
<a href="${properties.leftURL}" target="_parent"><img src="<%= leftImage %>" alt="image"></a>
</c:otherwise>
</c:choose>
</c:when>
Is there anyone who could help or give me advice me please?
I have spent a lot of time researching on the internet but can't find an example to use that can help me.
Thanks
Lisa.