[TYPO3-ect] ECT library
Christian Welzel
gawain at camlann.de
Fri Mar 10 10:48:01 CET 2006
Elmar Hinz schrieb:
> Please give further criteria! What should a basic extension library
> contain?
I would like to see some simple functions to translate records.
Instead of the need to write such code like this ever and ever
again
$row =
$this->pi_getRecord("tx_table",$this->internal["currentRow"]["foo"],1);
if ($GLOBALS['TSFE']->sys_language_content) {
$OLmode = ($this->sys_language_mode == 'strict'?'hideNonTranslated':'');
$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay('tx_table', $row,
$GLOBALS[''TSFE']->sys_language_content, $OLmode);
}
there should be some nifty functions like
ect_getTranslatedRecord($table, $id);
Just my 2 cent.
More information about the TYPO3-team-extension-coordination
mailing list