[TYPO3] Tricky H2 rewrite

Tyler Kraft headhunterxiii at yahoo.ca
Tue May 22 14:41:48 CEST 2007


Hi,

The class gets added via the RTE.

Yeah I think that might be the easiest way to do it, just add a span to 
all h2s. Not very exciting your right but it will work :-)

Ty






Loek Hilgersom wrote:
> 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