Announcements Block by Vocabulary Terms

bdornbush - March 25, 2009 - 00:57
Project:Announcements
Version:6.x-1.2
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I thought I recalled something about announcements by Vocabulary terms. The documentation refers to

"Announcements: In xxx vocabulary
Shows the terms for the xxx vocabulary, which has been assigned to the 'announcements' content type. There may be more than one vocabulary show, depending on your configuration. Note: if there are no vocabularies assigned, then this block will not be shown."

I created a vocabulary for the announcements and assigned terms. I now have a block that shows the number of announcements by each vocabulary term, and I can click on each to see the announcements page for that term.

What I need to do is to have an announcements block on the front page that contains all announcements (which works fine) and then blocks on several other pages that show the announcements only for the vocabulary term relevant for each page.

If I click on the term in the announcements by category block, I get a page that shows the announcements by category. Now what I need is to use that same functionality in a block that will show the announcements for a selected vocabulary term. How can I do that?

#1

doompal - April 1, 2009 - 22:10

Try this http://drupal.org/node/323329 for two modules that may help.

#2

NancyDru - April 15, 2009 - 21:04
Status:active» postponed (maintainer needs more info)

This is do-able and not all that difficult. The trick is to know which term out of the ones that a node might be tagged with is the one to show.

#3

bdornbush - April 15, 2009 - 21:22

I would want the ability to create a block that is tagged to a term of my choice from the list of all announcements terms, and would show all the announcements that have that term associated with them. An announcement would show up in all blocks that are linked with terms that are associated with the announcement.

If I were creating views to do this, I would create a view for each term, and use that view as a block on each page where I need it.

#4

NancyDru - April 15, 2009 - 21:31

That's exactly how the Web Links "Related" block works, so I can borrow my code from there. Be aware that this only works when a single node is displayed (for example, it will not work on a taxonomy/term/xxx page).

#5

NancyDru - April 15, 2009 - 21:31
Status:postponed (maintainer needs more info)» active

#6

NancyDru - April 16, 2009 - 05:41
Status:active» fixed

Committed.

#7

NancyDru - April 25, 2009 - 16:28
Status:fixed» closed

Included in new release.

 
 

Drupal is a registered trademark of Dries Buytaert.