[TYPO3] Split graphical headers of tt_news
Elijah Alcantara
elijah.alcantara at gmail.com
Mon Feb 6 08:00:51 CET 2006
I wonder if this is possible? I've already done so for standard
content headers and it works great. Problem now is for tt_news content
headers ...
Here's a snippet of TS for normal content headers:
<snip>
# This will override all our <h1> headers and change it to graphical
# headers. Split on each word.
lib.stdheader.10.1 >
lib.stdheader.10.1 = TEXT
lib.stdheader.10.1.wrap = <div class="divheader">|</div>
lib.stdheader.10.1.current = 1
lib.stdheader.10.1.split{
token.char = 32
cObjNum = 1
1{
10 = IMAGE
10.alttext.cObject = TEXT
10.alttext.cObject.field = header
10.file = GIFBUILDER
10.file{
XY = [10.w]+6, 30
transparentBackground = 1
10 = TEXT
10{
text.current = 1
text.case = upper
fontSize = 23
fontFile = GassonicCnd.pfb
fontColor = #7c2230
offset = 0,20
niceText = 1
}
}
}
}
</snip>
And here's a snippet for my tt_news header (in which I've adopted from
stdheaders code):
<snip>
plugin.tt_news {
displaySingle {
title_stdWrap.cObject = TEXT
title_stdWrap.cObject.wrap = <div class="divheader">|</div>
title_stdWrap.cObject.current = 1
title_stdWrap.cObject.split {
token.char = 32
cObjNum = 1
1{
10 = IMAGE
10.alttext.cObject = TEXT
10.alttext.cObject.field= title
10.file = GIFBUILDER
10.file {
transparentBackground = 1
XY = [10.w]+2,30
10 = TEXT
10 {
text.field = title
text.case = upper
fontSize = 23
fontFile = GassonicCnd.pfb
fontColor = #7c2230
offset = 1,20
antiAlias = 0
niceText = 1
}
}
}
}
}
}
</snip>
The first one works great, but the tt_news part only makes the headers
of news items in graphic... but not split word-per-word. Can anyone
see any problem with the code?
Regards,
Elijah A.
More information about the TYPO3-english
mailing list