hello, anyone know how to get like the first 20-so...
# advancedpdf
p
hello, anyone know how to get like the first 20-something characters from a string? I tried
${result.salesdescription?truncate(20)}
but on saving the code it said not a valid built-in function for version 2.3.26-incubating or something along that line. and if I try substring like this
<#if (result.salesdescription?length<30) >${result.salesdescription}
<#else>${result.salesdescription?substring(0,30)}</#if>
I got an unexpected error' when printing.