1
HTML & templates / Formatting of text in my template (cutting chars)
« on: October 20, 2010, 10:39:44 AM »
Hi guys
I hope you can help me.
Lets say I have a picture with a date stamp in the filename:
"15.10.10.Image1.jpg"
Is it possible to only show the name? By cutting away the first 9 characters, something like:
%item-name%.substring(0, 9)
And it would print out:
"Image1.jpg"
Also if it's possible the other way around to print out:
"15.10.10"
Here it would of cause cut away all characters after the first 8.
Hope you understand what i mean
I hope you can help me.
Lets say I have a picture with a date stamp in the filename:
"15.10.10.Image1.jpg"
Is it possible to only show the name? By cutting away the first 9 characters, something like:
%item-name%.substring(0, 9)
And it would print out:
"Image1.jpg"
Also if it's possible the other way around to print out:
"15.10.10"
Here it would of cause cut away all characters after the first 8.
Hope you understand what i mean