[TYPO3-dev] Extending tt_news - class does NOT exist (General Utility)
Florian Rival
contact at oktopuce.fr
Tue Mar 17 12:24:33 CET 2015
Hi Marc,
This is how you should register your hook for tt_news (in the
ext_localconf.php of your extension) :
$GLOBALS
['TYPO3_CONF_VARS']['EXTCONF']['tt_news']['extraItemMarkerHook']['FahrzeugController']
=
'EXT:y7_fahrzeugdatenbank/Classes/Controller/FahrzeugController.php:&FahrzeugController';
And the class :
class FahrzeugController {
function extraItemMarkerProcessor($markerArray, $row, $lConf, &$obj) {
...
}
}
Hope it help,
Re: [TYPO3-dev] How to call Extbase controller action from piBase-Plugin?
==================================================
Florian Rival
Oktopuce
tel.: +33-642-255-448
fax : +33-985-375-102
web: www.oktopuce.fr
==================================================
Le 17/03/2015 10:39, Marc Ernst a écrit :
> Hi folks,
>
> I am developing my very first extension and I use typo3 6.2.9 and
> extension builder. I managed to build a basic database structure and I
> can output some data with it.
> Now I want to parse this data to tt_news Markers . The Markers is
> correctly in place (i checked twice), but when I implement a hook to
> my extension my GeneralUtility following Log shows:
>
> [INFO] request="5506dec70ba7e"
> component="TYPO3.CMS.Core.Utility.GeneralUtility": resolvedClass:
> Fahrzeug [WARNING] request="5506dec70ba7e"
> component="TYPO3.CMS.Core.Utility.GeneralUtility": class does NOT
> exist!!!: Fahrzeug
>
> Here is my function in the file
> /Classes/Controller/FahrzeugController.php
>
> public function extraItemMarkerProcessor(array $parentMarkerArray,
> array $row, array $lConf, tx_ttnews $tt_news) {
>
> debug($parentMarkerArray, '('.__CLASS__.'::'.__FUNCTION__.')',
> __LINE__, __FILE__, 3); // TODO DELETE
> $this->cObj = $tt_news->local_cObj;
> $parentMarkerArray['###FAHRZEUGE###'] = 'Test!';
> return $parentMarkerArray;
> }
>
> Here is my Hook in localconf.php
>
> $TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] =
> 'FahrzeugController';
>
> I tried it with
> $TYPO3_CONF_VARS['EXTCONF']['tt_news']['extraItemMarkerHook'][] =
> 'EXT:y7_fahrzeugdatenbank/Classes/Controller/FahrzeugController.php:&FahrzeugController';
>
>
> But no change...
> I'm getting no edge on this ... please help!
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list