accessdigital / wilson

A Drupal installation profile produced by Access. New installations should use https://github.com/accessdigital/drupal-template
https://www.weareaccess.co.uk
4 stars 1 forks source link

Add a Map zoom field and use it to override the display settings of map paragraphs #25

Closed AccessPaul closed 2 years ago

AccessPaul commented 2 years ago

Provides a drop-down field for editors to select their preferred zoom level for map components. Defaults to the original level 14. Uses a small custom module to do a hook_entity_view_alter on the paragraph.

FireShot Capture 496 - Edit Landing page Test - Wilson AOS - wilson-aos ddev site 2 FireShot Capture 496 - Edit Landing page Test - Wilson AOS - wilson-aos ddev site

AccessPaul commented 2 years ago

Thanks to a conversation with @mangyfox on Slack, I'm going to review this PR. He's opened my eyes to using the .profile file which avoids the use of a custom module for simple hooks like this.

iamsophiesk commented 2 years ago

Thanks to a conversation with @mangyfox on Slack, I'm going to review this PR. He's opened my eyes to using the .profile file which avoids the use of a custom module for simple hooks like this.

I did wonder if there was a way to do this but I've never used a profile before Wilson so I wasn't sure. Looking forward to the updates 👍