views:

2908

answers:

4

Let's suppose I have created a view that shows some kind of stories. But I want to show this view in a left bar - not link to 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?

A: 

You can create views as pages or blocks. As you're not telling exactly which Drupal/Views version you're working with, all I can tell so far is that, after you create the view, you can tell it to display as a block or as a page.

Then go to the blocks settings and set that to the position you want.

Seb
+2  A: 

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.

Sean McSomething
Great! Is it possible further to limit block visibility to Stories tagged with some specific tag?
PHP thinker
A: 

That seems like it should be that way, but when I create my view as a block, it does not show up in my list of blocks.

kristen
A: 

I also have this problem. I've created a view that shows only some fields from CCK node. However the block is not listed among blocks. I have no problems with showing the page of this view. But in my case, this just doesn't work.

Andrej