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 #1

Updated by Markus Klein over 10 years ago

  • Status changed from New to Needs Feedback

Are you on current master?
I recently reverted a patch which caused modifyDBRow() to not contain some rows.
Please check again with current master

Actions #2

Updated by taywa gmbh over 10 years ago

no - we use typo3 6.2beta5

we'll check with the current master

Actions #3

Updated by taywa gmbh over 10 years ago

it's fixed in the current master (latest commit hash bf20c33d1b4d4bd0115ac01195651a60bc188614)

Actions #4

Updated by Markus Klein over 10 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Francois Suter)
Actions

Also available in: Atom PDF