[TYPO3] TT_NEWS categorytitles in different styles with {register:newsCategoryUid}?

Christopher Torgalson bedlamhotel at gmail.com
Sat Mar 31 18:21:17 CEST 2007


Hi,

On 3/31/07, Søren Vedel <sv at workhouse.dk> wrote:
> Hi,
>
> When I put this in my Setup:
>
> plugin.tt_news.displayLatest {
> title_stdWrap.wrap = <div
> class="news-latest-title-{register:newsCategoryUid}">|</div>
> title_stdWrap.insertData=1
>
> category_stdWrap.wrap = <div
> class="news-latest-category-{register:newsCategoryUid}">|</div>
> category_stdWrap.insertData=1
> }
>
> I get the titles nicely with
> .news-latest-title-1
> .news-latest-title-2
> etc.
>
> but the category titles get this style,
> .news-latest-category-{register:newsCategoryUid}
>
>
> The categories are wrapped like this:
> ###CATWRAP_B### ###NEWS_CATEGORY### ###CATWRAP_E###
>
> While the titles looks like this.
> <h3><!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h3>
>
>
> It seems that the category style renders different?
>
> Can I solve this with TS or do I have to hack tt_news?


Your output is /precisely/ the expected output. The .wrap property has
the wrong datatype for what you're trying to do. Something like
.dataWrap--or anything with the getText datatype--would be better.

More on datatypes:

http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/2/2/
http://www.typo3apprentice.com/howto/rtfm/#c111


-- 
Christopher Torgalson
http://www.typo3apprentice.com/


More information about the TYPO3-english mailing list