[Typo3-dev] Making a better access control using XCLASS
tapio
tapio.markula at dnainternet.net
Thu Aug 25 14:24:33 CEST 2005
> Now I see. You used the wrong XLASS key. This is the correct one:
> $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/cms/layout/db_layout.php']
Thank's. That solved this matter.
I just copied
$TYPO3_CONF_VARS['BE']['XCLASS']['typo3/alt_doc.php']
and made modification to that.
> Hint: at the end of each files is the include code (with the XCLASS key).
You mean this:
// Include extension?
if (defined('TYPO3_MODE') &&
$TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/cms/layout/db_layout.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/cms/layout/db_layout.php']);
}
Thank's for this hint
Well I could now make a public extension BUT I know in advance that this
will conflict with some other plugins because of 'include_once(...)'
statements.
I will conflict with 'erotea2cal' concerning 'class ux_SC_alt_doc
extends SC_alt_doc' and presumably with some other plugins.
I could give a replacement 'class.ux_sc_alt_doc.php' for 'erotea2cal'.
I tried to add for 'erotea2cal' into 'class ux_SC_db_layout extends
SC_db_layout'
a JavaScript ($this->doc->JScode .=) initialization, but it didn't work.
More information about the TYPO3-dev
mailing list