Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Restrict panel panes availability per layout/region based on tags.
Usage example
Layout plugin definition
$plugin = array(
'title' => t('Custom Landing Page'),
'category' => t('Custom layouts'),
'icon' => 'landing_page.png',
'theme' => 'custom_landing_page',
'regions' => array(
'top' => t('Top'),
'menu_bar' => t('Menu bar'),
'main' => t('Main'),
'sidebar_left' => t('Sidebar left'),
'sidebar_right' => t('Sidebar right'),
),
'tags' => array(
'top' => array(),
'menu_bar' => array(),
'main' => array('full_width'),
'sidebar_left' => array('one_column', 'embed_code'),
'sidebar_right' => array('one_column'),
),
);
Custom pane - ctools plugin of "content_types" type
$plugin = array(
'single' => TRUE,
'title' => t('Full-width pane'),
'description' => t('Provides full-width pane'),
'category' => 'Custom category',
'edit form' => 'full_width_pane_edit_form',
'render callback' => 'full_width_pane_render',
'tags' => array('full_width'),
);
This "Full-width pane" will be available only for the "Main" region of the "Custom Landing Page" layout.
Supporting organizations:
Sponsorship
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Created by duozersk on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.