If I understand it correctly views setup allows you to choose field to display (in table view) but both block and page share same fields

But block usually has less horizontal space and breaks the layout

I know I could either create another view and use it for just block view
or
I could do that on the theme level (I think)

Is there any other way ?

Wouldn't it be nice to actually have a checkbox next to each field to designate if it is to be displayed on the block view ??

Comments

merlinofchaos’s picture

Status: Active » Closed (works as designed)

There are only 2 solutions that I know of:

1) theme the view, and catch the block view and have it specifically show fewer fields
2) use a different view.

2 is frankly a lot easier to do and maintain than 1.

Views 2 will support this, but Views 1 will be unable to.

giorgosk’s picture

I don't know if this request should be closed
but here is a simple example using theme function to do this
http://drupal.org/node/254629

Sinan Erdem’s picture

Views2 is available now, but I cant seem to find the support for different fields on different displays.

By the way, Views should be a core module :) Drupal isn't Drupal without Views. Such a great module...

giorgosk’s picture

etcetera9
views2 offers overriding the fields that appear for each "dispaly"
clicking on each field gives you the "override" button
explore it

Sinan Erdem’s picture

Thank you for your answer.

When I want only a specific "display" show a certain field, I click on the existing field and there comes an "OVERRIDE" button. That ensures the field is displayed on that type of display. Then I can delete that field from other displays.

Really great functionality...

pauln600’s picture

Version: 5.x-1.6 » 6.x-2.6

There seems to be an issue with this - I can get the block version of a view to exclude one field from display, overriding the default, but when I try to exclude a second field, it resets the state of the first...

Paul N.

merlinofchaos’s picture

On your block, Fields and click the override button. Then the fields list on the block will be separate from the default.