[TYPO3-ttnews] Treatment of wraps for titles and e.g. subheaders is different. Why?
Tomas Broeker
broekth at web.de
Wed May 17 12:50:27 CEST 2006
Andre Flitsch schrieb:
> 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
Hi Andre,
yes, all this I found out (after some efforts ;). But it cost a lot of
time to understand why the layout didn't work as it should.
So I would just like to now why the title_stdWrap is "empty" (i.e. I
MUST set a tag in the HTML-template or by TS) while the subheader has
some kind of a preset stdWrap.
Now I know that it is. But for a beginner this is really confusing. So I
would just like to know if there is a special reason. Because if not, I
would suggest to treat all markers the same way.
Thomas
More information about the TYPO3-project-tt-news
mailing list