b13 / container

A TYPO3 Extension for creating custom nested content elements
GNU General Public License v2.0
168 stars 64 forks source link

Containers used as reference do not show contained content elements #391

Open carsten-wilhelm opened 1 year ago

carsten-wilhelm commented 1 year ago

When I reuse a container with references, the reference is shown correctly in the frontend - but in the backend I only see the reference to the container.

This makes it extremly complicated to edit the contained content - you need to identify the page of the original container and then edit this page to see the content.

Is there a way to display the child elements when containers used as a reference?

Pravin0711 commented 1 year ago

@carsten-wilhelm did you get any solution for this?

achimfritz commented 1 year ago

Hi @carsten-wilhelm , you mean CE CType "shortcut" ("Insert Records"), right? you have installed EXT:paste_reference, right? because core itselfs do also not provide any edit possibility to the original record. I think this feature is implemented in https://github.com/Kephson/paste_reference/blob/main/Classes/PageLayoutView/ShortcutPreviewRenderer.php ? so this is not a container issue

saitho commented 9 months ago

@achimfritz IMHO EXT:paste_reference only provides an easier way to create shortcut content elements. Even without EXT:paste_reference, the editor can create a "shortcut" CE which he then places in a container.

saitho commented 9 months ago

@Pravin0711 Current workaround is resolving the content references via a custom processor like so, that replaces the data in processedData with the record the shortcut points to:

dataProcessing {
  10 = B13\Container\DataProcessing\ContainerProcessor
  10 {
    dataProcessing {
      10 = Vendor\MyExtension\DataProcessing\ResolveContentReferencesProcessor
    }
  }
}