This isn't as useful as I thought it would be, as you can't have different fields per display. Oh well. Here's the patch anyway.

I'm also a little concerned about possible performance issues with choose_display() but I don't see a simple way around it, so posting this as is, maybe someone else has an idea, or maybe it's not as bad as I think.

Comments

john morahan’s picture

StatusFileSize
new6.26 KB

So, merlinofchaos explained to me how you can have different fields per display; w00t.

Made some changes as suggested by merlinofchaos, added more documentation, and fixed one bug.

merlinofchaos’s picture

Status: Needs review » Fixed

This is awesome. Thanks a lot for this one! This was a biggie!

john morahan’s picture

Status: Fixed » Needs review
StatusFileSize
new3.06 KB

Looks like the wrong version of this was committed; here are some fixes for the new views_menu_alter() that got left out.

john morahan’s picture

Status: Needs review » Needs work

oh, crap, that undid another fix. one sec.

john morahan’s picture

Status: Needs work » Needs review
StatusFileSize
new2.96 KB

Try this one.

john morahan’s picture

StatusFileSize
new2.97 KB

May as well correct the comment while I'm here.

john morahan’s picture

StatusFileSize
new984 bytes

Oh, I see you committed the rest of this already. Just the comment, then.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed! Thanks a bunch!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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