[TYPO3-dev] A hook in indexed_search - nonsense?

Steffen Kamper steffen at sk-typo3.de
Wed Aug 22 10:59:09 CEST 2007


Hi Tapio,

best would be to make a proposal in BT

vg  Steffen

"Tapio Markula" <tapio.markula at xetpoint.fi> schrieb im Newsbeitrag 
news:mailman.1.1187768780.21878.typo3-dev at lists.netfielders.de...
> Hi
>
> Indexed search has this kind of hook
>
> function initialize()    {
> ...
>
>             // Calling hook for modification of initialized content
>         if ($hookObj = &$this->hookRequest('initialize_postProc'))    {
>             $hookObj->initialize_postProc();
>         }
>
>
> Well I would like to manipulate $this->conf and $this->piVars putting this 
> kind of code
>
>
> // If "_sections" is set, this value overrides any existing value.
>         if ($this->piVars['_sections']) $this->piVars['sections'] = 
> $this->piVars['_sections'];
>         elseif($this->conf['sections'])        {
>             $this->piVars['_sections'] = $this->conf['sections'];
>             $this->piVars['sections'] =$this->conf['sections'];
>         }
>
> Note the elseif statement. But imo the hook doesn't work.
> the function doesn't take any parameter -
> It should be like this
> $hookObj->initialize_postProc(&$this);
>
> How I otherwise could reset any set values of '$this->conf' and 
> $this->piVars?
> Imo the hook is quite nonsense, if it can't reset $this variable.
> That is the most important issue, where the hook would be needed. 






More information about the TYPO3-dev mailing list