[5.x] Add photoswipe options UI (and optionally setting presets)

Created on 21 December 2018, over 5 years ago
Updated 6 September 2023, 10 months ago

Follow-Up issue to #2931019: Expose photoswipe options as setting and make them translatable β†’ . Currently we have the option to override and translate photoswipe options in code via an api hook, see photoswipe.api.php

The Drupal way would be to also offer these settings (all photoswipe options described here photoswipe.com/documentation/options.html) to users in the UI. But there are some challenges, for example do we want site-wide configuration or on field level or even have overrides or setting presets...

A good pattern might be to allow configuring the settings per field formatter, but having

  • Use global setting (from settings page)

as a checkbox for each option and allow overriding by disabling this checkbox... But might also be overhead or only be relevant for settings that make sense per field.

If someone would like to join the discussion or create a patch, you're welcome.

✨ Feature request
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Anybody Porta Westfalica

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.

Production build 0.69.0 2024