I tried the taxonomy_dhtml module and it looks kinda what i want but like the look and behaviour of the drupal site better i.e. showing a list of nodes with module descriptions.

Comments

agentrickard’s picture

It is not clear exactly what you wish to change.

If you want to change the appearance of the node teasers, read up on http://drupal.org/node/11816 node.tpl.php. If you are using CCK nodes, then the Contemplate project may be the answer.

If you want to change the _selection_ of nodes that appears on a given page, try the Views module.

With Views, CCK and theming, you should be able to do what you want.

--
http://ken.blufftontoday.com/
http://new.savannahnow.com/user/2
Search first, ask good questions later.

FvanT’s picture

reading my post again, i should have phrased more clearly.

I want a page (the CSS/theme is less important) showing exactly what this page on drupal.org does: http://drupal.org/project/Modules

In my case it will be Widgets iso Modules but the principle is the same, so I have created a Category and added Terms to it and tried several View options to create this page but i couldn't get it to work.

Then i tried the taxonomy_dhtml module which shows the amount of nodes for a given taxonomy term, which is what i want, but I prefer the same behaviour as on drupal.org

agentrickard’s picture

Now I understand.

It is fairly simple to write a module to do that type of layout. You would basically be extending the taxonomy_dhtml module. You'd need a hook_menu() statement and a callback function to print the taxonomy_dhtml content.

I would think that a Views page might work. If that doesn't, the Panels module should. Panels lets you create a page with specific block content (in this case, the taxonomy_dhtml menu block) and only that content on it.

--
http://ken.blufftontoday.com/
http://new.savannahnow.com/user/2
Search first, ask good questions later.

FvanT’s picture

in the end was to use this php code:


$items = array();
$terms= array(23,24,25,26,27);
foreach ( $terms as $term ) { 
    $count = db_result(db_query("SELECT COUNT(nid) FROM {term_node} WHERE tid = %d", $term)); 
    $items[] = l( taxonomy_get_term($term)->name, "taxonomy/term/$term") . " ($count)";
}
if ( count($items) ) {  print theme('item_list', $items);}