Add link on type page to the external entity data list

Created on 23 May 2019, over 6 years ago
Updated 1 August 2025, 22 days ago

Problem/Motivation

Typing the url for the fetched data table page ie /my-ee is a burden. Why not fix this on /admin/structure/external-entity-types

Proposed resolution

Add column with link

Remaining tasks

Using $row['page'] = $entity->toLink(); causes exception

No link template 'canonical' found for the 'external_entity_type' entity type

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands clemens.tolboom Groningen, πŸ‡³πŸ‡±/πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • @mortona2k opened merge request.
  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    I fixed the link.

    For consideration, there is a list link in the dropdown, but edit is shown by default. Maybe this should be the first link instead?

    Another option is to link the external entity type label.

  • πŸ‡«πŸ‡·France guignonv Montpellier

    That makes me think I was wondering if the way we assign routes could not be problematic. I forgot what I did bu I think if you use the Drupal contact form and then create an external entity called "contact", you don't have access to the contact page anymore. To be checked (I postponed that task and forgot about it). Maybe we should handle XNTT routes differently? For instance, provide a default route based on the type, like now, but allow user override on the XNTT type form? Or should forbid the use of existing routes as XNTT type machine name? There is also this recurrent problem of XNTT with underscore in their machine name that is translated as dashes in URLs (while underscores are leagal in URLs but not following standards).

  • πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

    Maybe treat that path as an alias, with a config form setting that checks if it's an existing route on save?

  • πŸ‡«πŸ‡·France guignonv Montpellier
    • guignonv β†’ committed 60bbb626 on 3.0.x
      Improve issue #3056530 fix: adds base_path property to external entity...
  • πŸ‡«πŸ‡·France guignonv Montpellier

    Commit # 60bbb626 provide major improvement: it is now possible to manage conflicting routes and choose custom routes different from the external entity type identifier.

Production build 0.71.5 2024