[TYPO3-mvc] Create localizations in FE / on demand / on import?

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Sep 3 04:27:13 CEST 2010


Hey,

> Does anybody have a better idea or a solution? I'm struggling for quite
> some time with this now :(

it's always the same. You spend hours finding the bug, then you write to 
the newsgroup and just a few minutes later you have the solution. Well, 
in this case it's not a solution but really seems to be a bug in the 
persistence backend. The persistence layer is like I assumed overwriting 
the record uid with the _localizedUid if present. But this field has to 
be mapped to 'l18n_parent' instead. After fixing this, creating 
localized records is working for me.

Unfortunately fixing the fieldname there is not the final solution, 
because the persistence backend should not now anything about the 
l18n_parent field - this is specific to the T3StorageBackend - so we 
need a way to handle it there, or extend the dataMap by such a field 
definition.

For those who like to have a look at the code - check out the method 
updateObject of Tx_Extbase_Persistence_Backend (should be at line 786).

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list