[TYPO3-dam-devel] RFC #10399: Media > List does not display records with language "All"

Francois Suter fsuter at cobweb.ch
Thu Feb 12 16:07:18 CET 2009


Hi Michiel,

> Can you tell me how to mod the TCA to test this patch?

Sure. Here you go:

// Add translation field to dam categories

t3lib_div::loadTCA('tx_dam_cat');
$TCA['tx_dam_cat']['palettes']['2']['showitem'] = 'sys_language_uid';
$TCA['tx_dam_cat']['types']['1']['showitem'] = 
'title;;2,subtitle,nav_title,description,keywords,parent_id,--palette--;LLL:EXT:dam/locallang_db.xml:tx_dam_item.frontend_pheader;1;;1-1-1';

// Add translation field to dam (to every type)

t3lib_div::loadTCA('tx_dam');
$TCA['tx_dam']['palettes']['60']['showitem'] = 'sys_language_uid';
foreach ($TCA['tx_dam']['types'] as $key => $type) {
	$TCA['tx_dam']['types'][$key] = str_replace('title;;;;', 'title;;60;;', 
$type);
}

Cheers

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-team-dam mailing list