Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the ability to clone a views display while changing the display plugin #5246

Closed
klonos opened this issue Sep 21, 2021 · 6 comments · Fixed by backdrop/backdrop#3751
Closed

Comments

@klonos
Copy link
Member

klonos commented Sep 21, 2021

This is the same change as committed in Views 7.x back in May: https://www.drupal.org/node/1401778

If you have multiple displays, and one page display has overridden fields or style plugin settings, and you want to create a block display that has those exact settings, you have to manually rebuild it.

The idea is that you could choose the new display plugin while cloning, along with a warning saying that all display settings will be unconditionally thrown away. Some display plugins share similar setting names that mean different things, so there should be no attempt to translate those.

@klonos klonos self-assigned this Sep 21, 2021
@laryn
Copy link
Contributor

laryn commented Sep 21, 2021

Great idea.

@herbdool
Copy link

Wow, so simple but works great! This could have saved me many hours over the years. Rtbc

@laryn
Copy link
Contributor

laryn commented Oct 27, 2021

Agreed -- this could save a ton of time. @klonos -- there's one fix needed in the code where a drupal_ didn't get switched to backdrop_.

@herbdool
Copy link

Good catch @laryn. I merged your change.

@philsward
Copy link

Thx for getting this going guys. It's a much welcomed addition.

backdrop-ci referenced this issue in backdrop/backdrop Nov 18, 2021
…plugin.

By @klonos, @laryn, and @herbdool.

Port of Drupal issue #1401778 by dawehner, tim.plunkett, damiankloip, Alex Bukach, AlfTheCat, PhilY, DamienMcKenna.
backdrop-ci referenced this issue in backdrop/backdrop Nov 18, 2021
…plugin.

By @klonos, @laryn, and @herbdool.

Port of Drupal issue #1401778 by dawehner, tim.plunkett, damiankloip, Alex Bukach, AlfTheCat, PhilY, DamienMcKenna.
@quicksketch
Copy link
Member

Thanks folks! I merged backdrop/backdrop#3751 into 1.x and 1.20.x. Although this is a feature, we try to keep pace with core cross-ports as often as possible, so I've gone ahead and included this for 1.20.2.

@jenlampton jenlampton changed the title Views: Add the ability to clone a display while changing the display plugin Add the ability to clone a views display while changing the display plugin Nov 18, 2021
@jenlampton jenlampton changed the title Add the ability to clone a views display while changing the display plugin Added the ability to clone a views display while changing the display plugin Nov 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants