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

merlinofchaos’s picture

It 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.

ray007’s picture

Yes, 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 ...

sun’s picture

Title: hidden fields » Hidden fields
Version: 5.x-1.x-dev » 6.x-2.x-dev

Bumping 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.

mooffie’s picture

Status: Active » Fixed

Views 2 has an "Exclude from display" checkbox for every field, so this feature is implemented already.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

Daniel A. Beilinson’s picture

Status: Closed (fixed) » Active

So, is there the way to expose "Exclude from display" option with view? Or something other who can give ability to choose\hide fields (columns)?

merlinofchaos’s picture

Status: Active » Closed (fixed)

Already answered in #4.

Daniel A. Beilinson’s picture

Status: Closed (fixed) » Active

Sorry, is there the way to expose to user this option? Like expose filters.

dawehner’s picture

The user should be able to hide some fields?

Daniel A. Beilinson’s picture

Yeah! Some fields, right! So, by this - some columns in table.

dawehner’s picture

i 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.

Daniel A. Beilinson’s picture

Because it's very-very useful feature. Like exposing fields. But for some reasons it's always postponed.

Daniel A. Beilinson’s picture

One reason is permissions. Now only views admins can hide fields through views options for all users at once.

esmerel’s picture

Status: Active » Closed (fixed)