rejetto forum
May 25, 2012, 08:55:00 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Formatting of text in my template (cutting chars)  (Read 360 times)
0 Members and 2 Guests are viewing this topic.
draguls
Occasional poster
*
Offline Offline

Denmark Denmark

Posts: 3


View Profile
« on: October 20, 2010, 05: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 Smiley
Logged
rejetto
Administrator
Insane programmer
*
Offline Offline

Italy Italy

Posts: 11831


View Profile
« Reply #1 on: November 01, 2010, 05:47:40 AM »

sorry for the late reply.
yes it is possible, but it's better if you use HFS 2.3 instead of current official 2.2.
doing it by 2.2 is still possible by using javascript, that's up to the browser.
by 2.3 you can do it with commands on the server itself, like {.cut.}
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 17, 2012, 07:55:16 PM
anything