Bug #56411
closed_categories are not available in Typoscript for the HMENU.special=categories
0%
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
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
Updated by taywa gmbh over 10 years ago
no - we use typo3 6.2beta5
we'll check with the current master
Updated by taywa gmbh over 10 years ago
it's fixed in the current master (latest commit hash bf20c33d1b4d4bd0115ac01195651a60bc188614)
Updated by Markus Klein over 10 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Francois Suter)