Currently, there appears to be no method by which a user may toggle the display of individual fields/columns when interacting with a view.
The issue I'm currently faced with is allowing users to show or hide a specific field. Ideally, such a feature would not require a full page reload.
My apologies for the brevity - I'm not quite used to filing Issues.
Comments
Comment #1
dambrisco commentedBumping. I've been combing through the Drupal and Views APIs to try to figure out what I'd need to do - I'm figuring on developing a custom module to perform this. (I'll of course try to stick to the View standards and styles in order to allow it to be rolled with it at some point if desired.)
Specifically, my goal here is to allow users to decided whether or not they want to display teaser images with faceted search results. Right now, I'm hoping to implement a simple checkbox with either AJAX or Javascript to simply remove the column or toggle between a link and the image.
If anyone would like to point me in the right direction or even throw some code my way, that'd be great.
Comment #2
xaviviena commentedDid you find a way to do this?
In my case I need to create some filter checkboxes, if they're checked the corresponding field has to be shown as a column on a table.
I've got no idea how achieve it now...
Thanks
Comment #3
dambrisco commentedI haven't been able to figure out a way to do this yet, unfortunately, mostly because this feature was put on the back-burner with due to upcoming publication deadlines and other features that were much more important.
I imagine both our cases are going to require a customized Views module. If and when I get around to this myself, I'll make sure to update this thread.
Comment #4
merlinofchaos commentedYou don't need to customize the Views module, just the style.
Comment #5
merlinofchaos commentedIn fact, this is the kind of thing that should happen in its own module. It won't go into Views itself.
Comment #6
shiraz dindarI realized this is a "won't fix" but wondering if anyone has done this via a view style, as Merlin has suggested, if they'd be willing to post their code here.
Comment #7
dambrisco commentedI haven't gotten around to this yet, but I'm planning on taking a look at it within the next week or two.
I'll make sure to contact you when I've developed a solution.