[TYPO3] Graphical Headers and appending the normal header text, as actual text

bernd wilke xoonsji02 at sneakemail.com
Mon Apr 7 13:24:21 CEST 2008


on Mon, 07 Apr 2008 11:31:37 +0200, The Plankmeister wrote:

> Hi all,
> 
> I have a graphical header setup like this:
> 
> 10 = IMAGE
> 10.file = GIFBUILDER
> 10.file {
> XY = 198,32
> 	5 = IMAGE
> 	5.file = images/bg.png
> 	10 = TEXT
> 	10.text.current = 1
> 	10.fontColor = #FFFFFF
> 	10.fontFile =  t3lib/fonts/vera.ttf
> 	10.niceText = 1
> 	10.offset = 13,23
> 	10.fontSize = 20
> 	20 = EFFECT
> 	20.value = rotate=270
> }
> 
> However, I want to be able to suffix the resulting HTML IMG tag with the
> text of the header, wrapped in a span. The current output is something
> like:
> 
> <h2><img [...attrs...] /></h2>
> 
> But I'd like a result something like:
> 
> <h2><img [...attrs...] /><span>Header Title</span></h2>
> 
> So that in my "screen" stylesheet, I can set the span to "display :
> none", but in my "print" stylesheet, I can set the image tag to "display
> : none". That way, the header will be normal text, not a "vertical"
> image that doesn't look good when it's printed.
> 
> I was hoping that a simple addition might work, but no dice:
> 
> 10 = IMAGE
> 10.stdWrap.append = TEXT
> 10.stdWrap.append.value = <span>|</span> 10.file = GIFBUILDER
> 
> It just results in output HTML like this:
> 
> <h2></h2>
> 
> Is there a solution for this? I hope someone can help!

instead of the 
10 = IMAGE
10 {
	...
}
I think it should be something like this:
10 = COA
10 {
	10 = IMAGE
	10 {
		// your original definition from above
	}
	20 = TEXT
	20.current = 1		// << ????? get the actual text
	20.wrap = <span>|</span>

	wrap = <h2>|</h2>	// where does you get your wrap?
}

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-english mailing list