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

CommentFileSizeAuthor
drush_views.patch6.2 KBAlice Heaton

Comments

pescetti’s picture

Assigned: Unassigned » pescetti
Status: Needs review » Fixed

Thanks, functionality has been integrated (renamed to views-copy-options since this command copies options between views, not just fields).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pescetti’s picture

Version: 6.x-2.0 » 6.x-3.x-dev
Status: Closed (fixed) » Fixed

Clarification: this is fixed in the 3.x branch.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.