[TYPO3-Solr] solrfile and TCA columns

Heiko Kromm | Paints h.kromm at paints.de
Wed Dec 19 12:44:08 CET 2012


Hi list, 

I'm trying to index attachments from my own objects with solrfile. 
Unfortunatly solrfile does not recognize the TCA['columns'] configuration for my object type. 

I digged a little bit into it and found in tx_solr_fileindexer_AttachmentDetectorFactory::getAttachmentDetectorsForItem(tx_solr_indexqueue_Item $item) 

this part: 
if (!empty($attachmentFields)) { 
$typeColumnsTca = $GLOBALS['TCA'][$item->getType()]['columns']; 

I debuged the GLOBALS['TCA'] and there is no colums-array for my object type. 
Therefore I added a loadTCA part like this: 
if (!empty($attachmentFields)) { 
t3lib_div::loadTCA($item->getType()); 
$typeColumnsTca = $GLOBALS['TCA'][$item->getType()]['columns']; 

Now I have my columns array. 
It seems that all objects which are created with a dynamicConfigFile don't have a columns array unless you load it with t3lib_div::loadTCA. 

Can someone confirm this? 

Regards 
Heiko 


More information about the TYPO3-project-solr mailing list