[TYPO3-core] RFC: #10822: enableFields is missing a hook to manipulate the generated clause

Martin Kutschker masi-no at spam-typo3.org
Wed Apr 1 10:03:57 CEST 2009


Georg Ringer schrieb:
> Hey all,
> 
> this is a SVN patch request.
> 
> Type: Feature
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=10822
> 
> Description:
> I need a hook to change the enableFields and there is currently a hook
> but this just adds data and there is no chance to change the clause.
> 
> Why I need this hook / use cases:
> - I need to create links for users in special usergroups who can see how
> the page looks like for other usergroups
> - I need to fetch the content of the page depending on a usergroup given
>  in the GET params
> 
> Notes:
> Maybe the old hook should get deleted? I don't really know because I
> don't have the experience, so please tell me what to do with it.

The old hook cannot be removed. So putting the query parts into the
array is ok. But then the new hook must be called before the old one,
which has the get the full query as argument as before.

Masi


More information about the TYPO3-team-core mailing list