Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
carsten-wilhelm opened this issue Apr 18, 2023 · 4 comments
Open

Comments

@carsten-wilhelm
Copy link

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
Copy link

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

@achimfritz
Copy link
Contributor

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
Copy link
Contributor

saitho commented Jan 19, 2024

@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
Copy link
Contributor

saitho commented Jan 19, 2024

@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
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants