theme_menu_item

Has anyone used theme_menu_item to set an "active-trail" class for their primary links. If so I am stuck on how best to implement it through a block of menu (primary) links.

Any pointers much appreciated.

Active trail in primary links: PLEASE HELP

Please can someone help with this. I have a very simple site and taxonomy. The taxonony is:

1) News
1.1) US
1.2) Europe
1.3) Rest of World

2) Sport
2.1) Football
2.2) Baseball

etc.

Whenever I create a new node you can only select one taxonomy term. For instance News-Rest of World.

In this case the term is Rest of World and the parent is News.

My primary links are simply driven off the taxonomy eg, by linking to taxonomy/term/3/all where term 3 is News. This displays a list of all the nodes filed under US, Europe of Rest of World. Using either theme_links or displaying the primary links as a menu block I can generate an active class allowing me to highlight the primary link the tab falls under

The problem is when I click on a single node. This node will have been filed under "Rest of World" but when I display the full node the primary link loses its tab.

I have developed a workaround to query the database to find the parent and I can overide theme_links() to highlight the tab. The query code is stored in the page-node.tpl.php file and is:


$result = db_result(db_query("SELECT tid FROM {term_node} WHERE nid = $node->nid"));

$result2 = db_result(db_query("SELECT h.parent, d.tid FROM {term_data} d INNER JOIN {term_hierarchy} h ON d.tid = h.tid WHERE d.tid = $result"));

CCK Imagefield Bulk Import

This is my goal.

Has it been done?

Any Suggestions, Comments, Smart Remarks?

Can you administer help???

I have a really good idea (IMO) for a module that I may consider building if something similar does not already exist. So far I haven't found anything that does this...

I will be handing off a relatively complex site to the end-client very soon. I have broken down the admin section so that the users managing the site will only see the pages and links that are necessary. Now I would like to take it a step further and add help text to forms and pages where necessary.

Looking for US/West Coast Advanced Drupal person for non-profit site.....generous budget

I have been servicing a non-profit association of medical professionals for the last couple of years....I think it is time to convert over to Drupal...but, want to pay a pro who has a decent portfolio to guide me through the process. The key issues must be:

Client must be able to upload stock tab-delimited text file (database) from national association and easily upload to site. This is the core database of membership. The output but be customized....I assumed this is called a module.

The other components required:

Drupal 6.0 RC3 released

Release candidateWe are proud to present the third release candidate of Drupal 6.0. We hope that this will be the final release candidate before we can make an official release of Drupal 6.0. Since the second release candidate, we have fixed various issues including JavaScript performance problems, cleaned up menu updates, added several improvements to the update.module, and added a memory requirements check to update.php. We have even added some small usability improvements since RC2.

The first beta announcement provided a comprehensive list of high level improvements made since Drupal 5.x, so in this announcement we'll concentrate on how you can help ensure that Drupal 6 is released as soon as possible and is as rock solid as the previous Drupal releases that you've grown to love!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 6.x