[TYPO3-mvc] How do I set up sys_language_uid in controller?
Jakub Zembala
jakub.zembala at gmail.com
Mon Sep 9 14:01:43 CEST 2013
Hello Dmitry,
You can try to add
'default' => -1,
in Your TCA language field ($TCA['tx_yourext_domain_model_yourmodel']['columns']['sys_language_uid']['config']['default'] = -1;), it works fine if You create it in BE using normal "add element" in List View, but if You want to create It automaticly, I can't help. All i know is that You must mapping sys_language_uid in Your "ext_typoscript_setup" like this:
TYPO3\Gcmodels\Domain\Model\Portfolio {
mapping {
columns.sys_language_uid.mapOnProperty = sysLanguageUid
}
}
and create property in Model Class with setters and getters. So if this solution doesn't work properly, I hope that someone else can help You.
--
Kind regards, Jakub Zembala
More information about the TYPO3-project-typo3v4mvc
mailing list