(I’m just experimenting with transferring XSL templates to Velocity)
I’d like to display a chunk of HTML in a Velocity template, if there is something in a content editor field. In XSL I would do something like:
"…if test=“string-length(*/somefield)>1” >Display my HTML…
I realise I no longer refer to XML in Velocity. Could someone indicate how I do a test on the length of a string field?
I experimented with the #field macro but without luck so far