Problem/Motivation

On node edit forms, the Entity Mesh module adds an additional tab that displays all relationships between that node and other entities.

It would be very useful to have the same kind of “relationships” tab available for other entity types, especially media entities, so that site builders and editors can easily see from which content (nodes, blocks, etc.) a given media item is referenced.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

lpeidro created an issue. See original summary.

lpeidro’s picture

Status: Active » Needs review

The feature is ready for testing.
The Entity Mesh tab should now appear in the edit forms of both media and taxonomy terms.

Thank you.

lpeidro’s picture

The image processing feature was not implemented in the Entity Mesh, so I have added it. This implementation handles three cases: the use of the "img" tag, the implementation of lazy loading, and the use of responsive images with the "picture" tag. In the case of "picture", we only process the first "source" tag. The remaining sources typically refer to the same original image and media.

lpeidro’s picture

To improve performance and reduce the number of database queries, an initial logic has been added to detect the original image name by checking if the file has two extensions. This is a common pattern when WebP images are generated (e.g., example.jpg.webp). If the file has only one extension (e.g., example.webp), the system will check the database to determine whether it is a derived image or one that was uploaded in that format.

lpeidro’s picture

Status: Needs review » Reviewed & tested by the community

I merged the branch, all the test work properly.

lpeidro’s picture

Version: 1.x-dev » 1.2.3
Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.