[TYPO3-dev] get current element uid taking language into account

JoH asenau info at cybercraft.de
Thu Oct 10 20:09:11 CEST 2013


Am 10.10.2013 18:07, schrieb Sascha:
> Hello everybody.
>
> I have a really small but annoying problem.
>
> i get the current uid of the content element with:
> $this->configurationManager->getContentObject()->data['uid']
>
> however i now have a new language. And when i access it from the
> frontend in the language i still get the uid of the default language.
> But the translated object has a different uid. but I need the uid of the
> translated object.

Assuming the record has been modified by getRecordOverlay, there should be

$this->configurationManager->getContentObject()->data['_LOCALIZED_UID']

HTH

Joey


-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com



More information about the TYPO3-dev mailing list