[TYPO3-ttnews] [t3-newbie] 2 questions: inheritance and _LOCAL_LANG

Michael Miousse michael.miousse at infoglobe.ca
Tue Sep 23 17:05:47 CEST 2008


maaboo wrote:

> 1. I use the following tt_news settings:
> 
> /// begin ///
> plugin.tt_news {
>     templateFile = fileadmin/templates/tt_news.html
>     _CSS_DEFAULT_STYLE >
>     dontUseBackPid = 1
>     useHRDates = 1
>     defaultCode = LATEST
>     subheader_stdWrap {
>         crop = 1000 | ... | 1
>         ifEmpty.field = bodytext
>     }
> }
> }
> /// end ///
> 
> I insert into root page (id=14) COA which consist of several news sources:
> 
> /// begin ///
> [globalVar = TSFE:id = 14]
> lib.newsholder = COA
> lib.newsholder {
>     10 < plugin.tt_news
>     10 {
>         code = LATEST
>         pid_list = 43
> 
>     }
>     20 < plugin.tt_news
>     20 {
>         code = LATEST
>         pid_list = 42
>     }
> }
> [global]
> /// end ///
> 
> The code above shows two news sources from correct pages (42 and 43). But
> it doesn't inherit subheader_stdWrap from general settings (and other
> settings), but T3 use templateFile (and may be others).
> 
> Why? May be i'm doing something wrong fundamentally?

your inheritance is correct, you need to set the display type for your field 
subheader_stdWrap  default config in ts like this 
 plugin.tt_news {
     templateFile = fileadmin/templates/tt_news.html
     _CSS_DEFAULT_STYLE >
     dontUseBackPid = 1
     useHRDates = 1
     defaultCode = LATEST
     displayLatest{    
        subheader_stdWrap {
             crop = 1000 | ... | 1
           ifEmpty.field = bodytext
        }
     }
 }


> 
> 2. Where i can read about _LOCAL_LANG (is it tt_news option or T3 core)? I
> need to be sure that _LOCAL_LANG is RU by default. Where i can see it and
> set it?
> 

-- 
Michael Miousse
Infoglobe
michael.miousse at infoglobe.ca


More information about the TYPO3-project-tt-news mailing list