1.8 KiB
1.8 KiB
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
Clone into Drupal custom modules and enable:
cd /path/to/drupal-root/web/modules/custom
git clone https://git.coadcorp.com/drupal/configurable_views_pane.git configurable_views_pane
cd /path/to/drupal-root
drush en configurable_views_pane -y
drush cr
For studyweek11 Docker stack:
mkdir -p drupal/web/modules/custom
if [ -d drupal/web/modules/custom/configurable_views_pane/.git ]; then
git -C drupal/web/modules/custom/configurable_views_pane pull --ff-only
else
rm -rf drupal/web/modules/custom/configurable_views_pane
git clone https://git.coadcorp.com/drupal/configurable_views_pane.git drupal/web/modules/custom/configurable_views_pane
fi
docker compose -f docker-compose.yml exec -T php sh -lc 'cd /var/www/html && vendor/bin/drush en configurable_views_pane -y && vendor/bin/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.
defaultorblock_1 - Contextual arguments: e.g.
1770(comma/pipe/newline separated)
Notes
- This module intentionally keeps plugin id
booking_configurable_views_panefor compatibility with any existing block config already using that id. - Includes a small compatibility stylesheet for legacy D7-like output:
- hides
caption > h2.leftheadings (for example largeGeneralcaptions), - promotes
.block__titlesize for blocks that render this pane.
- hides