Hi everybody!

I'm almost new to Drupal; I'm using FourSeason theme and wanna list nodes in drop down menus per term. Suppose I'm having 10 menu items with 10 terms (identical in names) now wanna use a drop down menu in my theme in which when I roll mouse over for example "Nature" all the nodes belongs to the term "nature" been listed under it. Ok? I've the CSS\JS code for the drop down menus already, just don't know how to deal with listing nodes per term. Someone help please :)

Here's the part I'm flying around

    foreach($primary_links as $key => $value ) {
      if (ereg('active', $key)) {
        $primary_links[$key]['attributes']['class'] = "active";
      }
    } 

It gets the primary menu links, whole I need is putting a code in this loop to fetch a list of nodes and the rest would be a piece of cake ;)

Plus, I'm a php developer myself (blushing;)

Have a nice time,

Comments

Persian’s picture

* belong

WorldFallz’s picture

I would imagine you'd want to use taxonomy_select_nodes

===
"Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime."
-- Lao Tzu
"God helps those who help themselves." -- Benjamin Franklin
"Search is your best friend." -- Worldfallz

Persian’s picture

Geez! nice thanks you! will give it a try right away.

Persian’s picture

Hi !

I'm still so blushing, even more :[

I couldn't fix it. This is why I did to test if I can manage to do that:

<?
$tids = array("2", "3", "4");
$sub = taxonomy_select_nodes($tids, 'and' , 0 , TRUE);
while ($subs = db_fetch_object($sub)) {
echo$subs;
}
?>

Am I too nuts?

Persian’s picture

PS: Did try with <?php , no hope

Persian’s picture

I've found this

$myNodes = taxonomy_select_nodes(array(2,10),"and");
echo node_title_list($myNodes);

Here: http://www.sajalkayan.com/drupal-rulez-joomls-sux.html

Not working.