Currently if you export a Panel all its Variants/Handlers are included.
This is perfect default behaviour, but in some cases it is useful to export Variants/Handlers separately.

This patch adds this functionality by introducing a new variable page_manager_export_page_include_handlers

If set to FALSE, you can export variants/handlers one-by-one in Features.
See attached images for the difference in Features interface.
The thingy is the new component "Page manager (1) (page_manager_handlers)".

Usage:

Separate exporting
$ drush vset page_manager_export_page_include_handlers FALSE

Back to default behaviour
drush vset page_manager_export_page_include_handlers TRUE or
drush vdel page_manager_export_page_include_handlers

Comments

ndf created an issue. See original summary.

ndf’s picture

ndf’s picture

ndf’s picture

ndf’s picture

Issue summary: View changes
ndf’s picture

Status: Active » Needs review
chris matthews’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

The 3 year old patch in #3 to page_manager.module and page.inc does not apply to the latest ctools 7.x-1.x-dev and (if still applicable) needs a reroll.

Checking patch page_manager/page_manager.module...
error: while searching for:
$code .= "function " . $name . "_{$export['default hook']}() {\n";
foreach ($objects as $object) {
// Have to implement our own because this export func sig requires it
$code .= $export['export callback']($object, TRUE, ' ');
$code .= " \${$export['identifier']}s['" . check_plain($object->$export['key']) . "'] = \${$export['identifier']};\n\n";
}
$code .= " return \${$export['identifier']}s;\n";

error: patch failed: page_manager/page_manager.module:1201
error: page_manager/page_manager.module: patch does not apply
Checking patch page_manager/plugins/tasks/page.inc...

shubham.prakash’s picture

Status: Needs work » Needs review
StatusFileSize
new1.65 KB

Rerolled

japerry’s picture

Status: Needs review » Closed (outdated)

Drupal 7 is no longer supported, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.