Published: October 24, 2024
Live Preview Module for LocalGov Microsites is Beta Ready
As I said on linked in, this week my brain was fried and also buzzing while working on getting a beta release of the LocalGov Live Preview module.
Need LocalGov Drupal services? Give Big Blue Door a shout.
Meetings and Meet-ups
- Merge Tuesday: A very interesting meeting this week, no major items merged but lots of small items that have been in PR-purgatory for a while got looked at and merged, which is very helpful.
- Quality Metrics: Another very good chat this week about bringing quality metric data into LGD - readability, broken links, etc.
- Microsites Meet up: We discovered a regression where aliases set for microsites pages are not being respected.
- NetCall Converse Walk-through: Honestly, the more I see of this platform, the more impressed I am.
Code Contributions
This week I tried to focus on the Live Preview feature for LGD Microsites. I think this is going to be really useful as part of the Editor Experience mission for microsites admins, once we get it stable.
- I moved all the microsites-specific items to a sub module. This means we can have a base module with low-level functionality, such as theming the settings tray, and this can be shared across any platform that uses the module - LGD CMS or Microsites.
- Then I re-created the "Edit Microsite Design" tab to use a routing file and some permissions so it's not visible all the time (and has a nice fallback if JavaScript fails to load).
- Then I set up a custom form mode for live previews, so we don't have "all the fields" in the off-canvas tray when editing the design of the microsite.
- Next up was to update the README.md so people will know how to use the module.
- And finally I created an uninstall function to remove the custom "Live Preview" form mode if we uninstall the module, so we then won't have any conflicts if someone decides to later re-install the module.
- After that I created a Beta release of the module so I can get a few more testers to try it out before we tag it as being stable. If you'd like to try it, you can do so via
composer require localgovdrupal/localgov_live_preview:^1.0.0@beta
.