Clone a display
setvik - December 19, 2008 - 05:44
| Project: | Views |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Description
A time-saving feature would be the addition of display-cloning functionality within a view.

#1
+1 from me on this one. While cloning a view is useful, cloning a display would be even better.
#2
subscribe
And +1 from me! I love the ability of keeping everything in one view, but some of my displays override quite a bit and re-creating that for new displays is a schlep.
Anton
#3
I was thinking this would be a handy thing for a while, but then I decided I should be making separate views instead. If it's easy to do, would be a nice feature though.
#4
Agreed, this is on my TODO list.
#5
+1 for me here, although if the default view is setup well then it's not a huge problem. A workaround if you have several displays that differ from default in the same way then set the default to match, then override each part you need to, then change the default for the next batch, etc.
#6
I'd like a default for each display type.
#7
Being able to clone a display would be delightful. In cases where you want to create several similar blocks it would save time and help eliminate human error.
It seems like it would be even harder to implement, but as Grayside mentioned, a default for each display would be even more powerful and flexible.
#8
This would be incredibly useful! Please implement this!
#9
Here is an initial patch.
It works perfect if you disable js. But if i have js enabled, its basically doubles the copies, but disables the previous display.
But it needs quite some stuff etc.
#10
This is very needed for me too, waiting for working patch.
But maybe not so good to create many displays (with many changes) for one view, better to do different views? What about performance in this variants, which variant is more speedy?
I thing when views loads the view, it loads and analyze all displays for show only one display.
#11
Thats a really good question. I know that views does quite a lot of stuff in unpack_options.
#12
+1. That Merlin has it already on the TODO sounds terrific. :)
#13
Subscribing
#14
Cool...i was looking for this
Go coding merlino... :-)
This is really crucial in multilanguage website making,
since it is not ready yet i'm going to clone the whole views, it will be easier but a little bit silly...
Thanks,
Da.
#15
@merlin is there a simpler way to do this in code first? I'd like to get features module to be able to add displays, not just whole views.
#16
frankcarey: Adding displays could be done via hook_views_default_views_alter() I think, but that will only work if the view is already in code.
#17
Subscribing
#18
Subscribing
#19
Subscribing
#20
Subscribe
#21
+1 for this feature
@planctus you don't necessarily need to copy a display in order to create the same display per language
have you tried "Node translation: Language > Current user's language, filter"
#22
You're perfectly right... i noticed that after commenting this issue. :-)
Da.