[TYPO3-dev] addEnableColumns-hook in class t3lib_page not working for pages?

Julian Hofmann typo3lists at webenergy.de
Tue Apr 7 12:38:13 CEST 2009


Hi Georg.

your patch is a good idea, but seems not to resolve my/the problem. In
my case it would be sufficient to *add* something.

Have a look in /t3lib/class.t3lib_page.php. All (or nearly all) queries
for page-records are done *without* calling enableFields(). Whatever a
hook would change in this function, it wouldn't have any consequences
for querying page-records.

Simple example:
Try to exclude a certain page from displaying via adding ' AND uid <> 1'
(or any other page-ID) by the addEnableColumns-hook. Normally you should
not see this page nor any content of this page now. But in fact, you can
see (parts of) it.


Julian




More information about the TYPO3-dev mailing list