How to Present Different Data in Multiple Displays of Views

This post is:

By admin - Posted on 13 March 2009

When first working with Views 2 for Drupal 6, it may not be immediately obvious that information presented in a different displays for a particular View doesn't have to be the same.

Let's say you have started a new View and you are have added several fields and filters. Then you add a Page display, and put in the path. Later, you realize you want to present the information for your View in a block as well. However, maybe you don't want to have all the same fields displayed in your block as you do on the page.

If you add a Block display and then go to make adjustments to the fields, you will have changed the fields for your Page display as well. By default, all of your fields, filters, and other parts of your View are linked together from the default to the page, block, or other display types. In order to have different fields (or filters, etc.) for various display types (page, block, etc.), you need to simply click the Override button that sits over on the right of each section (filters, field, etc.).

That's all you have to do in order to present information differently in various displays of the same View. You can keep parts of it the same - such as arguments - if you wish to do so. When you add a new display, the fields and filters, etc. will be the same - you only have to override that parts that you want to be different.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.
If you are searching for an answer to a particular question and do not find the answer you need on this page, please feel free to Contact Us With a Question or Suggestion for a post.
Matthew Winters with Web New Castle

Web New Castle is led by Matthew Winters, an online community professional by background and now specializing in Drupal. See more about Matt Winters.