Issue Bug Closed

#56411_categories are not available in Typoscript for the HMENU.special=categories

taywa gmbh 02/28/14, 09:39 updated 02/28/14, 11:35

Description

the documentation for the new special-HMENU “categories” states that the id’s of the selected categories should be accsessible as a getText/stdWrap with the field “_categories”. see [[http://docs.typo3.org/typo3cms/TyposcriptReference/latest/ContentObjects/Hmenu/#hmenu-special-categories]]

however, this is not the case:
the “_categories” are set in collectPages() function of CategoryMenuUtility.php but they never make it to Typoscript.

we’ve tracked down the issue to the modifyDBRow(&$row, $table) function in:
_typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php_
where the _categories entry gets removed form the array.

the modifyDBRow function is called in the start($data, $table = ‘’) function in:
_/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php_

here’s the relevant snippet of ContentObjectRenderer.php ~#523:

public function start($data, $table = '') {
    global $TYPO3_CONF_VARS;
    var_dump($data); //_categories are set
    if (is_array($data) && !empty($data) && !empty($table)) {
        \TYPO3\CMS\Core\Resource\Service\FrontendContentAdapterService::modifyDBRow($data, $table);
    }
    $this->data = $data;
    var_dump($this->data); //_categories are MISSING

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.