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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | leaflet_EntityDisplayRepository_view_modes_3467556_2.patch | 2.96 KB | itamair |
Comments
Comment #2
itamair commentedThanks for this heads-up. Patch provided accomplishing what is being requested ...
Comment #4
itamair commentedPatch #2 committed into 10.2.x dev branch, will be part of the next Leaflet module release.