Hi everyone,

Any help on the best way to do this would be greatly appreciated. I'm going to have a variety of different types of nodes (e.g. poll, event, forum) which will all be categorised using the same taxonomy.

What I'd like to do is set up a template which pulls in the appropriate poll, event, forum etc based on a particular taxonomy term.

E.g. Say I have a term in my taxonomy called "Dogs" then I would like to have appear on my /dogs/ page the:

- "dogs" forum in the content area on the left
- any "dogs" events on the right hand side menu
- any "dogs" polls on the right hand side menu

What's the best way to do this?

Cheers
Rachel

Comments

agentrickard’s picture

Might be Taxonomy Block, but I don't think it can be restricted to individual node types like you're asking for.

You might have to make custom blocks that call the data you want using PHP.

--
http://ken.blufftontoday.com/

behindthepage’s picture

This one looks promising
http://drupal.org/node/30967

gpdinoz
"If you're not getting the answers you want maybe you're asking the wrong questions"

Regards
Geoff

agentrickard’s picture

That oughta do it. That's a good snippet.
--
http://ken.blufftontoday.com/

cre8d’s picture

Thanks very much, I'll give that a go and see how I get on :-)

Success’s picture

Is there a way to make the script do this:

When viewing a node of a category, automatically show the recent nodes of that category?

Leeteq’s picture

Late, but for any new readers as well:
Check taxonomy_block on the modules page.

If I am not mistaken, it will only work on the first taxonomy term on the actual node, so if you have more than one term, you may need to do some php snippet tricks in addition, by using the block visibility options.

Btw.:
- the Taxonomy_hide module lets you group/list taxonomy terms alphabetically within each vocabulary, and orders the view of terms based on each vocabulary's weight. That could possibly be useful in the above context. (Dont need to "hide" anything in order to use the taxonomy_hide module, I often use it only to be able to give priority to how taxonomy terms are listed.)

.
--
( Evaluating the long-term route for Drupal 7.x via BackdropCMS at https://www.CMX.zone )