[TYPO3-english] tt_news and genericmarkers

Pero Matic pero at matic.com
Sun Jul 11 16:05:20 CEST 2010


Oliver Rowlands wrote:
> Hi Pero,
>
> The data parameter allows you to load in additional column values into
> the tt_news cObj, which in PHP equates to:
>
> if($conf['data']!='') {
> foreach(t3lib_div::trimExplode(',',$conf['data']) as $key) {
> $pObj->cObj->data['generic_'.$key] = $row[$key];
> }
> }
>
> So you should normally end up with a "generic_day" and "generic_month"
> in your cObj, try:
>
> plugin.tt_news.genericmarkers {
>   LIST {
>     data = crdate
>     day = TEXT
>     day {
>       field = generic_crdate
>       date = j
>     }
>     month {
>       field = generic_crdate
>       date = M
>     }
>   }
> }

Hm, but i don't have generic_crdate field in tt_news table - i'm using 
existing one - crdate. So this is what i have in news template:

template_LIST:

some_html_code...
 ###GENERIC_day###
some_html_code...
 ##GENERIC_month###

and the result is:

some news 1 ...  5 Jul
some news 2 ...  5 Jul
some news 3 ...  5 Jul
etc..

and it should be:

some news 1 ...  5 Jul
some news 2 ...  8 Jul
some news 3 ...  10 Jul
etc..

Regards. 




More information about the TYPO3-english mailing list