Project

General

Profile

Actions

Feature #79350

closed

Make "RECORDS" know more about it's contents

Added by Urs Braem almost 8 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Frontend
Start date:
2017-01-17
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

As far as I can see, the INSERT RECORDS content element renders each record individually.

So a rendered record has no knowledge if there are others in the same CE. And there is no master container for the CE that knows about it's children. Correct?

(I use "insert records" to display contacts from a custom extbase extension on a page, and I'd like to get a different title and layout if there are one or several items.)

Would it be possible to make that CE more "gnostic" of its contents?
- Maybe pass along that information (how many records are being rendered) with a wrapper to the entire CE?
- Or in addition to rendering each record individually, return the data in an array that has the rendered content as well as the raw data?

I'm not sure if there are implications that prohibit this, so I thought I'd ask.

Cheers
Urs

PS This preceded the ticket
http://stackoverflow.com/questions/41598570/typo3-insert-records-element-detect-number-of-items/

Probably referring to those
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php
http://api.typo3.org/typo3cms/7/html/_records_content_object_8php_source.html

Actions

Also available in: Atom PDF