Project

General

Profile

Actions

Bug #56411

closed

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

Added by taywa gmbh over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Actions

Also available in: Atom PDF