Hi,
i'm trying to create a site thats structured like this wireframe, but i cant figure out how to split up the content variable into to multiple columns.

but i do see how to place blocks into the left or right sidebar. so, can a blog post, or a blog teaser be placed into a block? heh, now i dont know how to place a blog post or blog teaser into a block, but it'd be some place for me to start!

thanks!!

Comments

mokargas’s picture

You could use a view (from the Views module) to pull out blogs or blog teasers, then have these display as blocks anywhere you like in your site.

	$block = module_invoke('views', 'block', 'view', 'name_of_view_that_retrieves_blog_posts');
			print $block['content'];		
seakayjay’s picture

you may be interested in using views module together with panels module http://drupal.org/project/panels

fresh-off’s picture

thanks guys!!!
i've since even found a tutorial that shows how to tackle this using views and panels:

http://ryan.grinhost.net/tutorial/2007/anatomy_front_page

hey denizengt, so using your method, i'm assuming i'd place that php snippet directly into a div of my choosing inside of my theme? heh, i'm SURE thats a newbie question.. but just wanted to make sure i'm following!

i'm off to read the documentation on views! hopefully i'm on the right track now; thanks again, both of you!

mokargas’s picture

Sure would, though I recommend chosing whatever's easier for you

By the way to clarify, 'name_of_view_that_retrieves_blog_posts' would be the name of your created view, so if you called the view "hoobajoob" it would need to reflect that. Using invoke you can place views as blocks literally anywhere.

rafialikhan’s picture

This might work for you, place the code you see here http://drupal.org/node/23231 into a block. But the teaser and how much is shown is not clearly defined so you may run into problems if your blogs have some html tags or php tags embedded in them.