I'm currently working on converting a site to Drupal which has this menu system:

Home
The Team
- John Smith
- Bob Jones
- etc.
Projects - Current
- Project 1
- Project 2
- Project 3
etc.

When 'The Team' and 'Projects - Current' menu items are clicked, the menus expand, displaying the submenu items (this isn't particularly important - as long as I can get the submenu items showing on a different page).

I have a node type called 'team' which is for team members, and a node type called 'project' with taxonomy terms 'current' and 'completed' - these are currently listed on a page using a PHP snippet found in the forums.

Would it be possible to have these submenus dynamically populate with:
a) All items of 'team' node type (for The Team menu section)
b) All items of 'project' node type with taxonomy term 'current' (for the Projects - Current menu sectiton)

And also, is there a better way to list these items on a separate page, considering the current status of the Views module for 6.x?

I'm very new to Drupal, but I've been reading the forums and figured out how to add submenu items manually, but I can't find anything regarding my specific problem.

Any help would be greatly appreciated!
Thanks

Comments

tom.usher’s picture

I've managed to create a custom block listing all team members by using this PHP snippet

$type = "team";
$list_no = 100;

$query = "SELECT n.title, n.created
          FROM {node} n
          WHERE n.type = 'team'
          ORDER BY n.created ASC";

$sql = db_rewrite_sql($query);
$result = db_query($sql);
$items = array();

while ($anode = db_fetch_object($result)) {
  $items[]= l($anode->title, "node/$anode->nid");
}
print theme('item_list',$items)

Would it be possible to have this show under the 'The Team' link in the Primary links block?
Also, could I somehow create a custom template, rather than using item_list, which would have my own code?

Thanks again

tom.usher’s picture

Anyone with any ideas?

tom.usher’s picture

Sorry to bump this topic but I'm still completely stuck on this one!

mot’s picture

I would like to know that as well - bump ;)

robdinardo’s picture

I would like to know how to show a vocabulary name and its terms in the primary links menu. Taxonomy menu does not seem to do this.