Idea Delivered

This has been implemented in DXA 2.2

DXA: Embed more than just Multimedia content in RTF

DXA has a nice method to 'embed' linked items in Rich Text fields, by expanding the linked item into a separate RTF fragment containing full linked entity JSON. This allows for custom handling of the embedded item within the web application (for example to render a fancy video player, or responsive images). For the moment it is limited to content which is linked using an img element, however I have a couple of use cases where I would like an embedded linked item, which is not an image:

  1. Downloads - we want to enrich RTF links to downloads (PDFs etc.) with the file size and icon for file type
  2. Tooltips - we want to be able to create links to tooltip components (a normal component containing help text), which show help text in a tooltip on the page when the link is clicked.

As the logic to embed already exists, it would be great if this was made more generic and configurable, so for example you could specify a TBB parameter with a list of schema names for which linked RTF content should be embedded.

There are already issues and related pull requests to implement this extended logic in github, so all that needs to be done is to merge this into the next release of DXA and the feature is there standard for everyone.

DXA TBBs: https://github.com/sdl/dxa-content-management/issues/13

DXA Web Java: https://github.com/sdl/dxa-web-application-java/issues/93 

DXA Web .NET: https://github.com/sdl/dxa-web-application-dotnet/issues/65