[TYPO3-project-seminars] How to use the hook "modifySingleView"

Oliver Tempel OliverTempel at gmail.com
Fri Apr 25 10:16:15 CEST 2008


ok found error,
first in class name must be "tx_"
if not getUserObj returns false

Oliver Tempel wrote:
> Hi Erwin.
> If i did so, my Hook will not be included.
> Call of t3lib_div::getUserObj($classReference)
> returns nothing
> 
> extension name: msv_seminars
> 
> ext_localconf.php:
> require_once(t3lib_extMgm::extPath('msv_seminars').'class.seminars_modifySingleView.php'); 
> 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['seminars/pi1/class.tx_seminars_pi1.php']['hooks'][]='EXT:msv_seminars/class.seminars_modifySingleView.php:seminars_modifySingleView'; 
> 
> 
> Whats wrong?
> 
> Oliver
> 
> Erwin Knoll wrote:
>> Hi everybody!
>>
>> First of all i want to excuse for my not very friendly words from my 
>> question posted here. I was stressed and in a hurry. So i first want 
>> to thank Oliver for this great extension!
>>
>> And: i found the solution now by myself and post it here in case 
>> someone else has the same problem (shouldn't try to code when in a 
>> hurry and stressed out).
>>
>> Correctly it is to make the following two statements in 
>> ext_localconf.php (My extension is called "rsys_seminars_ext"):
>>
>> // Include my hook class
>> require_once(t3lib_extMgm::extPath('rsys_seminars_ext').'class.tx_rsysseminarsext_modsingleview.php'); 
>>
>>
>> // Register my hook objects
>> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['seminars/pi1/class.tx_seminars_pi1.php']['hooks'][]='EXT:rsyshook/class.tx_rsysseminarsext_modsingleview.php:tx_rsysseminarsext_modsingleview'; 
>>
>>
>> So far - hopefully it is of any use for some readers
>>
>> Regards,
>>
>> Erwin


More information about the TYPO3-project-seminars mailing list