[TYPO3] Tricky H2 rewrite SOLVED
Tyler Kraft
headhunterxiii at yahoo.ca
Thu May 24 15:17:57 CEST 2007
SOLVED
lib.h2special = CASE
lib.h2special{
key.data=parameters:class
breakoutTypoTagContent=1
stripNL=1
stdWrap{
wrap=
if.isTrue.current=1
space=0|0
typolink.parameter.data=parameters:link
}
special=TEXT
special{
fontTag = <h2 class="special"><span>|</span></h2>
current=1
trim=1
if.isTrue.current=1
setCurrent{
current=1
parseFunc.makelinks=1
parseFunc.makelinks.http.keep=path
parseFunc.makelinks.http.extTarget=
parseFunc.makelinks.mailto.keep=path
parseFunc.allowTags =
b,i,u,a,img,br,sub,sup,strong,em,span,strike,ul,ol,li
parseFunc.denyTags=*
parseFunc.sword=<span class="searchword">|</span>
constants=1
tags.link=TEXT
tags.link.current=1
tags.link.parseFunc.constants=1
tags.link.typolink.extTarget=
tags.link.typolink.target=
tags.link.typolink.wrap=
tags.link.typolink.parameter.data=parameters:allParams
}
}
default < lib.tk.h2special.special
default.fontTag = <h2></h2>
}
}
lib.parseFunc_RTE.tags.h2 < lib.h2special
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