Passing the entity object/ID/URL into the component

Created on 18 July 2024, 5 months ago

Problem/Motivation

We've been successfully using the SDC Display module for a while and it worked great; however, we've recently faced an issue where we haven't been able to implement the link to the node rendered with SDC Display.

In a traditional templates-based approach, a few extra variables like the entity object, URL, etc are available; however, this is not the case for SDC Display.

Steps to reproduce

1. Create the SDC with an entity URL field.
2. Enable SDC Display for the node display.
3. Try to map the node URL to the display.
Expected: able to pass in the entity URL in the component.
Actual: it's not possible.

Proposed resolution

Two possible approaches:
1. Implement mapping some basic variables like entity ID, revision ID, entity type, entity object (as slot?), URL, title, display mode... you name it.
2. Go with tokens πŸ“Œ Implement Token Replacements Needs work instead.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

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

Comments & Activities

Production build 0.71.5 2024