[TYPO3-ttnews] Split date in different pieces

Francesco di Francia darksky77 at gmail.com
Fri Feb 6 01:18:13 CET 2009


Hi,

i'm trying to split the date of a news in 3 different typoscript objects 
(day, month, year) that then i will wrap in html to apply different styles.

What i think to do is to use this kind of code in TS Setup:

1  20 = TEXT

2  20.field = bodytext

3  20.split {

4    token.char = 10

5    cObjNum = 1

6    1.current = 1

7    1.wrap = <TR><TD valign="top"><IMG src="dot.gif"></TD><TD 
valign="top"> | </TD></TR>

8  }

9  20.wrap = <TABLE border="0" cellpadding="0" cellspacing="3" 
width="368"> | </TABLE><BR>

settings the max property too (max number of splits).

i'm stucked because i don't know how to grab the date value. The example 
  above catch teh bodytext. How to catch the date ?

There are different way to have a custom date html block in typoscript ? 
Example, starting from a simple output:

  DD-MM-YYYY

i wish to obtain something as

<div>
	<div>DD</div>
	<div>MM</div>
	<div>YYYY</div>
</div>

thanks.


More information about the TYPO3-project-tt-news mailing list