[Typo3] Making extensions, which use XCLASS - some problems
tapio
tapio.markula at dnainternet.net
Thu Aug 25 17:17:39 CEST 2005
Peter Niederlag wrote:
> Hi,
>
> tapio schrieb:
>
>>Peter Niederlag wrote:
>
> [...]
>
>>class ux_SC_alt_doc extends ux_SC_alt_doc {
>>
>>might not work?
>
>
> I'd go for:
>
> class ux_ux_SC_alt_doc extends ...
Ok. Thanks'.
But there is still two problems
1) On what principle Typo3 reads ext_locallang.php files.
File, which has 'extends ux_SC_alt_doc' must be loaded *after*
the file which has 'extends SC_alt_doc'
2) How to setup extension for 'ux_SC_alt_doc' so that 'ux_ux_SC_alt_doc'
would work.
$TYPO3_CONF_VARS['BE']['XCLASS']['typo3/alt_doc.php'] works just once
because of this statement
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/alt_doc.php']);
}
When this line has been executed in one 'ext_localconf.php'
$TYPO3_CONF_VARS['BE']['XCLASS']['typo3/alt_doc.php'] =
t3lib_extMgm::extPath($_EXTKEY) . 'class.ux_sc_alt_doc_tm.php';
the next corresponding statement is skipped - for example the line is
skipped
$TYPO3_CONF_VARS['BE']['XCLASS']['typo3/alt_doc.php'] =
t3lib_extMgm::extPath($_EXTKEY) . 'class.ux_sc_alt_doc.php';
presumably
class.ux_sc_alt_doc_tm.php would needs corresponding statement but what
is the principle to build it.
It seems that ux_ux_ becomes too complicated in public extensions.
More information about the TYPO3-english
mailing list