1
Hi,
I'm using myalbum module. I got a long description of a photo in $photo.description. I would like to truncate it if longer than 100 chars, so edited the myalbum_photo_in_list.html template:
....
<{if strlen($photo.description)>100}>
short descr:
<{substr($photo.description,0,100)}>
<{else}>
<{$photo.description}>
<{/if}>
...
but it's not working, the if clause is correctly evaluated, as 'short descr:' is printed out, but the substr isn't working.
Any help?
Tomas