[TYPO3-mvc] Translation not Working with Tx_Domain_Model

Christian Schwan - Dimme GmbH christian.schwan at dimme.ch
Wed Sep 1 02:49:12 CEST 2010


He guys,

 

I got a huge problem with Translation with ObjectStorage & Domain Model.

Typo3 Backend all Systems, Products and Articles are Translated and showing
the correct

Location and Parent Location.

 

The Articles form the called Product is Translated fine, but the Domain
Model System

Is showing a blank array no Tx_Productpresenter_Domain_Model_System object.

 

I hope someone can help me out?!

 

 

Domain Model Product:

--------------------------------

 

/**

* @var Tx_Productpresenter_Domain_Model_System

*/

protected $system;

 

/**

* @var
Tx_Extbase_Persistence_ObjectStorage<Tx_Productpresenter_Domain_Model_Articl
e>

*/

protected $article;          

 

/**

* @return Tx_Productpresenter_Domain_Model_System

*/           

public function getSystem() {

return $this->system;

}

 

Fluid Template:

--------------------------------

 

<f:for each="{products}" as="product">

    

    {product.system.title}

 

     <f:for each="{product.article}" as="article">

      {article.titel}

     </f:for>

 

</f:for>

 

 

$TCA['tx_productpresenter_domain_model_product']:

--------------------------------

 

'system' => Array (                         

'exclude' => 1,                  

'label'   =>
'LLL:EXT:productpresenter/Resources/Private/Language/locallang_db.xml:tx_pro
ductpresenter_domain_model_product.system',

'config' => Array (

'type' => 'select',

'foreign_table' => 'tx_productpresenter_domain_model_system',

'foreign_sortby' => 'sorting',

'maxitems' => 1,

)

),

 

 

'article' => array(

'exclude' => 1,

'label'   =>
'LLL:EXT:productpresenter/Resources/Private/Language/locallang_db.xml:tx_pro
ductpresenter_domain_model_product.articles',

'config' => array(

'type' => 'inline',

'foreign_table' => 'tx_productpresenter_domain_model_article',

'foreign_field' => 'product',

'foreign_default_sortby' => 'color',

'maxitems'      => 999999,

'appearance' => array(

'newRecordLinkPosition' => 'bottom',

'collapseAll' => 1,

'expandSingle' => 1,

),

)

),

 



More information about the TYPO3-project-typo3v4mvc mailing list