Initial standalone configurable views pane module

This commit is contained in:
2026-03-04 15:06:41 +11:00
commit f4e6824181
5 changed files with 259 additions and 0 deletions

29
README.md Normal file
View File

@@ -0,0 +1,29 @@
# Configurable Views Pane
Standalone Drupal module that provides one block plugin for Page Manager / Panels variants:
- Plugin ID: `booking_configurable_views_pane`
- Form fields: `view_id`, `display_id`, `arguments`
It lets editors set view target and contextual arguments per block instance, similar to legacy Drupal 7 pane behavior.
## Install
1. Place this module at:
`web/modules/custom/configurable_views_pane`
2. Enable module:
`drush en configurable_views_pane -y`
3. Rebuild cache:
`drush cr`
## Use in Page Manager
Add block **Configurable Views Pane** and set:
- **View ID**: e.g. `audio_resource_embedded_player`
- **Display ID**: e.g. `default` or `block_1`
- **Contextual arguments**: e.g. `1770` (comma/pipe/newline separated)
## Notes
- This module intentionally keeps plugin id `booking_configurable_views_pane` for compatibility with any existing block config already using that id.