Geeks and God Podcast

(206)984-3694geeksandgod@gmail.comfeeds.feedburner.com/geeksandgod
login | register

Blog posts on ministry pages

So what's the best way to do this?

Each ministry is going to have a page on our site that will have a picture and a paragraph or two. That's easy enough. But what I'm not sure about is that I'd like to have that ministry leader's three latest blog posts show up as teasers on the bottom of the page.

My thoughts are to have each ministry page published by that ministry's leader. Then have a block that displays the three most recent blog posts by the same author as the page.

Is that the best way to do it? And if it is, how do I do it? I couldn't seem to figure out how to setup views to do it.

Thanks!

OG

Another way to do this is to make ministry pages organic groups. Then, you can add a node type called blog post and tie it to groups. This would allow more than one ministry leader to post on that blog.

There are quite a few ways you could implement this. Think in terms of what you want to do first and get a well rounded picture before you build it.

Matt Farina
Geeks and God Co-Host
www.innovatingtomorrow.net
www.mattfarina.com

Custom Module

(that was me posting earlier... just forgot to login)

So I looked into this more, and it turns out that there wasn't a good way to do this with views. So with a lot of help from my "Pro Drupal Development" book, I wrote a custom module to take care of this.

I ended up basing the nodes selected for the block on taxonomy instead of author, so that multiple people could post to the same ministry page (Thanks for the idea, MF). As node_load() is being called, I store the taxonomy in a session variable, and base the contents of the block off of that.

Anyways, it's does exactly what I wanted it to do... I couldn't be happier with the power of Drupal right now! If anyone is interested in the module, let me know, I'd be happy to pass it on.

Part of the SAP Network