Problem/Motivation

Not a big issue, but there's currently no way to use the "Default" view mode to render an entity when using the LeafletMap view style. The closest it gives you is the full content display which holds special meaning, as that's ideally used for when the entity is viewed on the frontend and can lead to effects such as this where certain special fields may be rendered when they shouldn't.

Steps to reproduce

Under a leaflet map view. Set the leaflet popup source to Entity, and switch the Popup Source to "< node entity >". "Default" should be available as a view mode option, but isn't currently available.

Proposed resolution

Use the entity display repository to get the view mode options so that it works just like core currently does, without needing to manually build the options.

Remaining tasks

Provide issue fork / merge request.

User interface changes

The "Default" option will now be available to select.

API changes

Data model changes

Comments

codebymikey created an issue. See original summary.

itamair’s picture

Status: Active » Fixed
StatusFileSize
new2.96 KB

Thanks for this heads-up. Patch provided accomplishing what is being requested ...

  • itamair committed 06afa36d on 10.2.x
    Issue #3467556 by itamair, codebymikey: Use the EntityDisplayRepository...
itamair’s picture

Patch #2 committed into 10.2.x dev branch, will be part of the next Leaflet module release.

  • itamair committed 07213126 on 10.2.x
    Revert "Issue #3467556 by itamair, codebymikey: Use the...

  • itamair committed 7abc05ff on 10.2.x
    Revert "Revert "Issue #3467556 by itamair, codebymikey: Use the...

Status: Fixed » Closed (fixed)

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