How to show a block before a view?

Cayhn - November 18, 2008 - 14:02

So here it was I would like to do. I got the view frontpage enabled so all visitors come there I also got a custom view who shows there. Now I would like a block to be shown above that view, how do I do that? The custom view that is shown is not added as a block since it wont allow me to show exposed filters.

Does anyone even understand what I'm trying to do? :P

=-=

VeryMisunderstood - November 18, 2008 - 14:04

you need to investigate regions. and create a content top region to place blocks above content.

Yes that was my guess too,

Cayhn - November 18, 2008 - 14:07

Yes that was my guess too, thanks! But the problem here is i'm using garland and it seems I cant find where it defines its regions. Is this something drupal does by default for all its themes?

=-=

VeryMisunderstood - November 18, 2008 - 14:12

the .info file I believe.

however, garland is already a very customized theme so your mileage may vary. I don't use garland when the job calls for theme customization.

Thanks for the help, I

Cayhn - November 18, 2008 - 14:15

Thanks for the help, I appreciate it! I will search for the elusive regions :)

simple solution?

adixon - November 18, 2008 - 15:12

I think all themes already have the 'content' region defined - just put your block in there and give it a weight of -10 and it'll float to the top (and of course, only show it on ).

=-=

VeryMisunderstood - November 18, 2008 - 15:29

The only problem I think I forsee with this method is that it's now in a content area instead of a seperate region which I believe allows you more control over presentation.

 
 

Drupal is a registered trademark of Dries Buytaert.