Drupal: How to show specific view in a particular block

AlexA picture AlexA · May 7, 2009 · Viewed 19.7k times · Source

Let's suppose I have created a view that shows some kind of stories. But I want to show this view in a left-hand bar — not a link to the view, but the view itself.

How can I connect my new view with a fixed block position? I want to be able to show real view data in various places on my page. Is it possible or I am limited only to central area and links to views from menu?

Answer

Sean McSomething picture Sean McSomething · May 7, 2009

Using Views 2.x for Drupal 6.x it's simple to create a block from a view. Every view has a set of 'default' settings and some number of display settings. A display can be a page, a block, a feed or anything else that creative module authors.

To make a block from your view, you just "Add Display" of type "block", override any settings that you want changed in the block (IE - display less items, just a node title, whatever). You then have a block that you can place like any other Drupal block.

edit: Answer to "Can you limit stories to ones that are tagged"? Sure thing. You just add a filter for Taxonomy terms.