Hello :)
I'm often in a situation where I have a number of different views that display the same things but have different filters/arguments. If I want to change the way those views display things I have to change them all, which is a bit annoying. (Same thing would apply to views that display different things, but have same sort criterias, etc.). Using different displays can help to an extent, but doesn't have enough flexibility.
So I thought it would be nice to able to copy options between views. I've implemented a drush views command to do just this :) (Patch attached). It allows you to :
- Display available displays for a view ;
- Display available settings for a view/display (eg. 'fields', 'filters', 'arguments', etc.) ;
- Copy any number of settings between a source view and any number of destination views.
That's it, hope it's useful and thank you for this module :)
Anselm
| Comment | File | Size | Author |
|---|---|---|---|
| drush_views.patch | 6.2 KB | Alice Heaton |
Comments
Comment #1
pescetti commentedThanks, functionality has been integrated (renamed to views-copy-options since this command copies options between views, not just fields).
Comment #3
pescetti commentedClarification: this is fixed in the 3.x branch.