I'm trying to create a page with multiple views with a single exposed filter at the top. I've set everything up correctly as far as I gather, however even though the default and page displays show the exposed filter the block display does not. Does anyone know how to resolve this??

Comments

nickgs’s picture

I am interested in this too. Looks like once you switch to a block the exposed filters don't render. Do exposed filters not work with blocks in Views 2?

One solution I can think of is to use PHP to render page views on your page. You can use the following syntax in the body of your node to accomplish this:

echo(views_embed_view('<view_name>', '<display_name>', <arguments>));
nickgs’s picture

Ok looks like we got it but there are still problems. You do not have to use the code above. When configuring a block view you have the ability to 'Expose the form in a block' this was make a new block available to the block system for just the exposed filters. Very cool.

Now the problem is, when using this filter the form action is pointing directly to the root page. Not sure what we are missing here but I am sure it is something simple.

Any idea's would be greatly appreciated.

Thanks.

Nick

nickgs’s picture

We got it... you need a page display with a defined path for this to work.

Now for filtering multiple views...

Nick

dabblela’s picture

Many thanks for this find!

droid19’s picture

Is there a way we can do this in Drupal 5