[TYPO3-english] tt_news and genericmarkers

Oliver Rowlands oliver at liquidlight.co.uk
Sun Jul 11 15:42:32 CEST 2010


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
     }
   }
}

HTH,

Oliver

Pero Matic wrote:
> Sorry, the post lost text formating, so here it is again:
> 
> -------
> 
> You need a bit more knowledge about TS to follow those.
> 
> Use data of the current tt_news record
> 
> It is possible to use any data of the tt_news record by setting
> 
> plugin.tt_news.genericmarkers.data = title,uid
> 
> Now you are able to use the values of the fields title and uid like that
> 
> plugin.tt_news.genericmarkers {
> data = title
> title2 = TEXT
> title2 {
> field = generic_title
> wrap = Title again: |
> }
> } 
> 
> 

-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


More information about the TYPO3-english mailing list