[TYPO3] Tricky H2 rewrite

Loek Hilgersom hilgersom at xs4all.nl
Tue May 22 00:11:32 CEST 2007


Hi Tyler,

What exactly adds the class to the h2-tag?

You may consider adding the span to all h2-tags - even when you don't need them 
- and let the stylesheet only set properties for
.spc span { bla... }

Not very exciting, but maybe it helps....
Loek


Tyler Kraft wrote:
> Hi
> 
> Ok this one is a bit beyond me I think, as I'm stumped. I have a css 
> layout and it has <h2>...</h2> placed via the RTE as one might expect. 
> But it also may have <h2 class="spc">...<h2>
> 
> Using lib.parseFunc_RTE how can I remap the <h2 class="spc">...</h2> to 
> become <h2 class="spc"><span>...</span><h2> on the way out?
> 
> Any help appreciated.
> 
> Ty


More information about the TYPO3-english mailing list