[TYPO3-dev] Category API: Configure BE

Wolfgang Klinger wk at plan2.net
Thu Jun 12 15:53:18 CEST 2014


*hiya*

On 12 Jun 2014, at 15:32, Marc Wöhlken <woehlken at quadracom.de> wrote:
> Can the backend be configured to only show parts of the category tree,
> only those related to the current type of record set?
> 

save your category records in different sysfolders per type
and set something like
---
TCEFORM.tx_myext_domain_model_something.categories.PAGE_TSCONFIG_ID = 123
---
as PageTS on your folder (use e.g. PID 123 on the reference folder, PID 148 on the products folder) and 
use it in your makeCategorizable call:
---
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::makeCategorizable('myext', 'tx_myext_domain_model_something', 'categories', array(
    'fieldConfiguration' => array(
        'foreign_table_where' => ' AND sys_category.pid = ###PAGE_TSCONFIG_ID### '
    )
));
---
and the wizard will only display the categories in the specified folders


hth,
kind regards
Wolfgang




More information about the TYPO3-dev mailing list