[TYPO3] header date problem
Tadej Bregar
Tadej.Bregar at guest.arnes.si
Tue Mar 27 21:19:34 CEST 2007
Hi Roelof,
yes, for my template parsing I'm using Autoparser Extension; and If I
understand you correctly, you want
to place "Blah blah blah this is a header of an article" into the table
cell - you said <td> right?
So here we go:
-- some template code before --
lib.stdheader {
# 1st we delete the original date object, which is placed before the header
5 >
# next we delete the original header type 1 object,
10.1 >
# and then create a new one.
10.1 = COA
10.1 {
# 1st we output the title
10 = TEXT
10.current = 1
10.insertData = 1
10.fontTag = <td>|</td>
# 2nd we output the author field of the page, and wrap it
20 = TEXT
20.data = page:author
20.wrap = <div>Written by: |</div>
20.required = 1
# 3rd we format and output the date of the content element
30 = TEXT
30.field = date
30.strftime = %A, %d %B %Y
30.wrap = <div>Date: |</div>
30.if.isTrue.field = date
}
}
-- some template code after--
So "10.fontTag = <td>|</td>" has done the work. Now the HTML source would look like:
<td>Blah blah blah this is a header of an article</td>
Regards,
Tadej Bregar
More information about the TYPO3-english
mailing list