Show the Host entity instead of Parent Entity ID

Created on 6 December 2023, about 1 year ago

Problem/Motivation

For websites that use nested paragraphs, having the host paragraph entity is not at all useful.

This module would be way more useful if it had a link to the top-level Host entity instead of the Parent entity, which can often be a paragraph entity if using nested paragraphs.

Steps to reproduce

Proposed resolution

Since the top-level host entity cannot be obtained via a simple views query (because it would need to recurse up through the parents to find the host entity) the suggested approach is to simply alter the parent entity field and use entity query to recurse through the parents until you find a non-paragraph entity to which the item is attached.

Remaining tasks

User interface changes

Instead of listing the Parent entity, we'll list the top-level Host entity, and provide a link to the entity, provided that the entity type has a canonical URI.

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇨Ecuador jwilson3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024