[TYPO3-dev] stdWrap hooks - problem in 4.5
Marcus 'biesior' Biesioroff
vsbies at wp.pl
Fri Feb 4 21:47:59 CET 2011
ellou'
W dniu 11-02-04 20:16, Jigal van Hemert pisze:
> Hi,
>
> On 4-2-2011 18:34, Marcus 'biesior' Biesioroff wrote:
>> I just realized that one of my small extensions (EXT:ogonki) is not
>> working anymore in 4.5
>>
>> it uses standard stdWrap hooks as described in German wiki:
>> http://wiki.typo3.org/De:TSref/stdWrap#Anleitung:_Hook_f.C3.BCr_stdWrap_erstellen
>>
>>
>> It was working before (at least in 4.3) so I have no idea either I
>> missed something or I sholud write a new issue in BT.
>
> Look in typo3/sysext/cms/tslib/class.tslib_content.php lines 577-591. In
> 4.5 your hook code has to implement the interface
> tslib_content_stdWrapHook (see
> typo3/sysext/cms/tslib/interfaces/interface.tslib_content_stdwraphook.php)
>
> In tslib_cObj::stdWrap_stdWrapPreProcess(), etc. you can find the calls
> to your hook object.
>
> This is the new way of making hooks in the core.
it implements the interface:
http://typo3.org/extensions/repository/view/ogonki/current/info/class.tx_ogonki_hook.php/
the problem in above case is that the $configuration variable is not
read anymore...
if I use ie:
function stdWrapProcess($content, array $configuration, tslib_cObj
&$parentObject) {
debug($configuration);
return $content;
}
in debug it returns only array:
stdWrapProcess 1
stdWrapProcess.
no more $configuration['glueOrphans'] is available, although it's in TS
I still hasn't got it, maybe I was not quite clear - hooks are called if
no $configuration read try occures
regards
--
Marcus 'biesior' Biesioroff
http://www.typo3.pl | TYPO3 Polish Community
T3CI
More information about the TYPO3-dev
mailing list