Project

General

Profile

Actions

Bug #65527

closed

JSONView - _descend not working on multiple objects behind a variable

Added by Rainer Amler about 9 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2015-03-04
Due date:
% Done:

0%

Estimated time:
5.00 h
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

I've got the following data-structure

one Supercart 1:n> got many carts 1:n> got many Items

Now I want to use JSONVIEW to render each Object and all it's subobjects.

If the parent contains only one child you can render the child.

Once you've got multiple children the routine breaks and you cannot access it's subobjects.

here is my JSONVIEWCONFIGURATION:

$JsonViewConfiguration = [
            'applicationUser2Supercart' => [
                '_descend' => [
                    'supercart' => [
                        '_exposeObjectIdentifier' => TRUE,
                        '_descend' => [
                            'dateAdd' => [],
                            'carts' => [
                                '_exposeObjectIdentifier' => TRUE,
                                '_descend' => [
                                    'cartitems' => [
                                        '_descend'  => [
                                            'item'  => [],
                                        ],
                                    ],
                                    'dateAdd' => [
                                        '_only' => ['date'],
                                    ],
                                ],
                            ],
                        ],
                    ],
                ],
                '_exposeObjectIdentifier' => TRUE,
            ],
        ];

It should be possible to access all children and their children and all of their properties.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #65566: JSONView - _descend not working on multiple objects behind a variableClosed2015-03-04

Actions
Actions #1

Updated by Benni Mack almost 9 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)
Actions #2

Updated by Wouter Wolters over 8 years ago

  • Assignee deleted (TYPO3 Release Team)
Actions #3

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #4

Updated by Benni Mack over 8 years ago

  • Target version deleted (7.5)
Actions #5

Updated by Markus Klein over 8 years ago

  • Description updated (diff)
Actions #6

Updated by Markus Klein over 4 years ago

  • Status changed from New to Needs Feedback

For descending into collections you need to use _descendAll in your configuration.

Actions #7

Updated by Riccardo De Contardi about 4 years ago

  • Status changed from Needs Feedback to Closed

There has been no feedback for 90 days => closing the issue.

If you think that this is the wrong decision or there is still something about this topic that should be done please reopen it or open a new issue with a reference to this one. Thank you.

Actions

Also available in: Atom PDF