Ability to set variant machine name in Panels UI for Cloning and Importing variants.

Created on 24 April 2015, about 9 years ago
Updated 1 February 2023, over 1 year ago

Problem/Motivation

Follow-up to #813754: Ability to set variant machine name in Panels UI β†’

Ability to set variant machine name in Panels UI for Cloning and Importing variants.

β†’

Proposed resolution

Explicitly set a machine-name when importing and cloning variants.

Behaviour Variant Clone

  • When using an existing machine_name, you get a validation error before saving. Message is something like "The machine-readable name is already in use. It must be unique."

Behaviour Variant Import

  • When using an existing machine_name + option 'Overwrite=FALSE', you get a validation error before saving. Message is something like "The machine-readable name is already in use. It must be unique."
  • When using an existing machine_name + option 'Overwrite=TRUE', the existing variant will be deleted before saving the new variant. No errors.
  • When using an non-existing machine_name + option 'Overwrite=FALSE', the new variant will be saved.
  • When using an non-existing machine_name + option 'Overwrite=TRUE', the new variant will be saved.

Additional behaviour Variant Import regarding UUID's

  • Re-generate UUIDs if machine-name is different than import-code.
  • Keep UUIDs of import-code if machine-name is equal than import-code.

Remaining tasks

User interface changes

  • Machine-name field and overwrite checkbox added to panel-variant import-form.
  • Machine-name field added to panel-variant clone-form.

API changes

  • none
✨ Feature request
Status

Needs work

Version

1.0

Component

Page Manager

Created by

πŸ‡¨πŸ‡¦Canada joelpittet Vancouver

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024