[TYPO3-ect] tx_categories on TYPO3 4.2

Malte Jansen mail at maltejansen.de
Thu Feb 7 16:37:11 CET 2008


Hi!

There is alread bug for it :

	http://bugs.typo3.org/view.php?id=7414

Cheers,

Malte
Franz Koch schrieb:
> Hi Mads,
> 
>> tx_categories now works with TYPO3 4.2 (get it from svn).
> 
> I was looking for a way to disable the categorization for some tables 
> and was hoping that I can disable those in the BE module of your 
> extension, but that didn't seem so. So I digged the source a bit and 
> found, that there is a static method that is called to check whether the 
> table is allowed for categorization or not. But this method seems to be 
> 'out of order'. Is there a reason for this? Have a look:
> 
> -- lib/class.tx_categories_div.php -----
> function isTableAllowedForCategorization($table){
>     
>     global $TCA;
> 
>     return TRUE;
>     
>     //if the table is the category table, we return immediately.
>     if($table == 
> $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['categories']['table']) return TRUE;
>     if(!isset($TCA[$table])) return FALSE;
>     if($TCA[$table]['ctrl']['EXT']['categories']['exclude']) return FALSE;
>     return TRUE;       
> }
> -------
> 
> you immediately skip. I think this might be a left over when you did 
> some tests last time.
> 
> Besides of that, I think it might also be nice to have a switch like in 
> BE, where you can change this behaviour from 'allow by default' to 'deny 
> by default'. Just to keep that in mind when you're working on a 
> configuration module or something.
> 
> -- 
> kind regards,
> Franz


More information about the TYPO3-team-extension-coordination mailing list