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

Søren Vedel sv at workhouse.dk
Sat Mar 31 22:34:56 CEST 2007


Hi,

I found the property 'categoryTitle_stdWrap' which only wraps the 
category title.

plugin.tt_news.displayLatest {
  categoryTitle_stdWrap.wrap = <div 
class="news-latest-category-{register:newsCategoryUid}">|</div>
  category_stdWrap.insertData=1
}

Med venlig hilsen/Kind regards
Søren Vedel
Workhouse Media


Christopher Torgalson skrev:
> 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
> 
> 


More information about the TYPO3-english mailing list