[TYPO3-english] Use DataHandler to get language

Markus Klein klein.t3 at reelworx.at
Thu Jan 15 20:08:45 CET 2015

Hi Bernhard,

I recommend taking a look at the history function of the Core.
It already collects all page and content changes.

Since a page does not belong to a language, but has a page_overlay for each language it supports, the tracking should be rather simple.
Modifications of a page always happen for the default language (Edit Page Properties), so DataHandler works on the pages table.
Any changes which involves translation of a page will happen to pages_language_overlay table.

Content has its own field sys_language_uid which points to the language it is targeted for.

Kind regards

Markus Klein
TYPO3 CMS Active Contributors Team Member

> -----Original Message-----
> From: typo3-english-bounces at lists.typo3.org [mailto:typo3-english-
> bounces at lists.typo3.org] On Behalf Of Bernhard Schenkenfelder
> Sent: Thursday, January 15, 2015 7:50 PM
> To: typo3-english at lists.typo3.org
> Subject: [TYPO3-english] Re: Use DataHandler to get language
> Dear Markus:
> I'm working on a BE module that keeps track of all pages that are being
> changed.
> To do so, I hooked into the clear cache process, which is why I'm making use
> of the DataHandler object.
> The above mentioned method getPID() returns the pid of the page that was
> changed. A page, however, can have a default and a number of other
> languages. In order to really keep track of pages that are being changed, I
> need to know which language the page belongs to.
> Do you know what I mean?
> Many thanks,
> Bernhard
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

More information about the TYPO3-english mailing list