Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Aug 2007 at 10:30 UTC
Updated:
14 Jul 2012 at 19:38 UTC
It would be good if fields that do not define display options got one by default: show or hide.
I could need this because for a gmap, I need to select latitude and longitude, but I don't want to display those fields in the popup-windows. Same for "Node: type" which is used to choose the marker, but shouldn't be displayed otherwise.
Maybe it would also make sense to offer the "hide field" for other fields that already do have display options?
Comments
Comment #1
merlinofchaos commentedIt would be nice to have this in the UI, and that will likely become a feature at some point; until then, though, you need to hide the fields via theming. You can use the theme wizard to generate a theme function for a specific field; if you return '', then that field will generate no output.
Comment #2
ray007 commentedYes, I know I can do custom theming.
But it's more complicated than it should be, especially when I want to show the fields in some views and hide them in others ...
Ah, well, guess I'll try some css-trickery here first ...
Comment #3
sunBumping this to 6.x, as 5.x will not get any new major features. However, I don't know whether a different concept is planned or already implemented in Views 2. So there is a chance that we might want to close this issue instead.
Comment #4
mooffie commentedViews 2 has an "Exclude from display" checkbox for every field, so this feature is implemented already.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
Daniel A. Beilinson commentedSo, is there the way to expose "Exclude from display" option with view? Or something other who can give ability to choose\hide fields (columns)?
Comment #7
merlinofchaos commentedAlready answered in #4.
Comment #8
Daniel A. Beilinson commentedSorry, is there the way to expose to user this option? Like expose filters.
Comment #9
dawehnerThe user should be able to hide some fields?
Comment #10
Daniel A. Beilinson commentedYeah! Some fields, right! So, by this - some columns in table.
Comment #11
dawehneri don't see a a reason to have this in views core. Perhaps someone could write a contrib module.
I think this could be done quite easy to hide by using some custom js.
Comment #12
Daniel A. Beilinson commentedBecause it's very-very useful feature. Like exposing fields. But for some reasons it's always postponed.
Comment #13
Daniel A. Beilinson commentedOne reason is permissions. Now only views admins can hide fields through views options for all users at once.
Comment #14
esmerel commented