cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with freemarker and substring

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i wanted to use substring function of freemarker but when i use it i have an error.
i had seen this function here :
http://freemarker.sourceforge.net/docs/ref_builtins_string.html

I had wrote this in my template:
- ${'abc'?substring(0)}

And i obtain an IO error.

Is there a problem of version or compatibility ?

Thx in advance
3 REPLIES 3

ribz33
Champ on-the-rise
Champ on-the-rise
ok i ask myself :

Substring is a funciont from version 2.3.7 and alfresco 1.4 seems to use freemarker 2.3.3.

Ok i will try to find other solution for my template…

kevinr
Star Contributor
Star Contributor
The final Alfresco 1.4 community edition uses FreeMarker 2.3.8. Previously we used 2.3.3.

Thanks,

Kevin

ribz33
Champ on-the-rise
Champ on-the-rise
Great Smiley Happy

im using again 1.4RC !

Thx a lot i will take new version