Closed as duplicated: moved to Ability to set variant machine name in Panels UI for Cloning and Importing variants

This is a follow-up for ticket #2253919 "The UUIDs of cloned variant and relative panes are the same of original ones".
That ticket is fixed and it solves unique UUIDs for cloning.

This follow-up should deal with importing/exporting page-variants.

This bug makes variants with the same UUID to be skipped when refreshing strings during the translation process.
In i18n_panels this is done by the following lines of i18n_panels.module (function: i18n_panels_i18n_string_list):

https://www.drupal.org/node/2253919#comment-9951201
https://www.drupal.org/node/2253919#comment-10019609

Think importing needs same behaviour.

So exporting and importing a variant should behave equally as cloning a variant.
Unless you explicitly import with an option like 'overwrite existing variant if it exists'. The UUID can act as identifier for this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ndf’s picture

For reference the current import forms of:
- Views
- Page Manager Page
- Page Manager Variant/Handler

About the name/machine-name + override option

Both 'Views' and 'Page Manager Page' have kinda equal option sets:
- Enter the name to use for this view if it is different from the source view. Leave blank to use the name of the view.
- Enter the name to use for this page if it is different from the source page. Leave blank to use the original name of the page.

That can are combined with:
- Replace an existing view if one exists with the same name
- Allow overwrite of an existing page
If the name you selected already exists in the database, this page will be allowed to overwrite the existing page.

Proposal for Page Manager Variants:
Variant name
Enter the name to use for this variant if it is different from the source view. Leave blank to use the name of the variant.

Allow overwrite of an existing variant
If the name you selected already exists in the database, this variant will be allowed to overwrite the existing variant.

Unique UUIDs should be created:
- Variant is imported is not overwriting an existing variant: create new UUIDs.
- Variant is imported is overwriting an existing variant: keep UUIDs of imported variant.

ndf’s picture

Project: Panels » Ctools
Version: 7.x-3.x-dev »

Moved to Ctools issue-queue

ndf’s picture

Project: Ctools » Chaos Tool Suite (ctools)
Version: » 7.x-1.x-dev
Component: Code » Page Manager
ndf’s picture

ndf’s picture

Status: Active » Closed (duplicate)

Moved solution to issue Ability to set variant machine name in Panels UI for Cloning and Importing variants, because the solution depends on the ability to set a machine-name while importing.

ndf’s picture