[TYPO3-ttnews] Treatment of wraps for titles and e.g. subheaders is different. Why?
Andre Flitsch
pixelhed at pixel-works.co.uk
Wed May 17 07:44:15 CEST 2006
Tomas Broeker wrote:
> Hi,
>
> I am trying to understand the reason why the stdWraps for subheaders -
> for example - are treated different than the title of a news item.
>
> For a title I have to define in the HTML-template how the title marker
> shall be wrapped by html code.
> For example has the code in the html-template
> <h2>###NEWS_TITLE###</h2>
> the result
> <h2>title</h2>
>
> But the subheaders are treated different. When I use the same code for
> the subheader:
> <h2>###NEWS_SUBHEADER###</h2>
> the result is:
> <h2><h2>subheader</h2></h2>
>
> To define the wrap of the subheader I MUST use TS
> (displaySingle.subheader_stdWrap.wrap = <h2>|</h2>). But why? Why are
> the markers treated different? That is what I don't understand. And it
> took quite a long time till I finally found out how to get the right code.
> Is there a reason? Or is it coincidence? Because I think it is quite
> confusing. Shouldn't similar items be treated similar!?
>
> Regards
> Thomas
Hi Thomas,
It is possible to wrap both the title & the subheader using stdWrap. The
*_stdWrap's are simply defined with different defaults in the static
template:
displaySingle.title_stdWrap.wrap =
displaySingle.subheader_stdWrap.wrap = <h3>|</h3>
With tt_news you have the possibility to either wrap the marker using
the HTML template, or the corresponding *_stdWrap TS property.
HTH
Best regards
Andre
More information about the TYPO3-project-tt-news
mailing list