Hallo,
ich würde gerne die sp_newsteaserbox mit dem vorhanden Hook erweitern.
Auch wenn das alles gut dokumentiert ist komme ich nicht weiter.
Mit fehlt denke ich das Verständnis für die Einbindung des / eines Hooks.
Wo ich stehe.
Extension erstellt mit Datei tx_myext_modifyimageconf.php
Eigene Klasse erstellt tx_myext_modifyImageConf
<?php
class tx_myext_modifyImageConf {
function modifyImageConf(&$params, &$reference) {
$params['conf']['file.'][$index_dot]['niceText'] = '1';
$params['conf']['file.']['2.']['color'] = 'white';
$params['conf']['file.']['2.']['opacity'] = '60';
unset($params['file.'][$index_dot]['outline']);
unset($params['file.'][$index_dot]['outline.']['color']);
unset($params['file.'][$index_dot]['outline.']['thickness']);
}
}
if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tx_myext_modifyimageconf/class.tx_myext_modifyimageconf.php']) {
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/tx_myext_modifyimageconf/class.tx_myext_modifyimageconf.php']);
}
?>
ext_localconf erzeugt mit
<?php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sp_newsteaserbox']['modifyImageConf'] = 'EXT:tx_myext_modifyimageconf/class.tx_myext_modifyimageconf.php:tx_myext_modifyImageConf';
?>
Aus meiner Sicht sollte es das doch gewesen sein, oder?
Bin für jede Hilfe dankbar