Hi all,
I've submitted this topic before, but since the circumstances changed, i'll rephrase my question.
The site i'm working on uses Drupal's (excellent) taxonomy.module and taxonomy_html.module to classify its content into categories and items. The navigation is shown in 6 flat category blocks, containing a total of 46 items.
My goal is to have navigation blocks that expand and collapse without using a dhtml solution, much like the current Drupal admin navigation.
I'm not sure if i can do this myself, but i'm willing to try. So i dug into taxonomy_html.module and found that i can use '$term->tid' and '$term->vid' to evaluate wich links to print to the screen. Only thing missing here is the value of the current vid to compare it to.
Additionally i'd need a way to make all categories linkable, passing on their vids for comparison with '$term->vid'.
Phew, hope i made myself clear, it's kinda difficult to describe :)
Appreciate any help on the matter!
Comments
nav_table Module
I've been working on a collapsible navigation module for the last couple of days, which I've named 'nav_table'.
As the title suggests, it uses a table for layout, a row for each item of navigation. It doesn't use any JavaScript, so is not dynamic. Categories can be collapsed down several levels and sub-levels, and it highlights which page you are on. Also it's designed to use different styles for each link level.
You can see it in action here:
Cortext Japan Guide
As I'm very new to Drupal, the module is probably very buggy and inefficient, but if it helps you in any way please do email me and I will send you a copy.
At the moment I'm testing it a bit more before cleaning it up and adding it to the contributors CVS.
------------------------------------------
Drupal Specialists: Consulting, Development & Training
Robert Castelo, CTO
Code Positive
London, United Kingdom
----
That's pretty much what i'm looking for!
That's pretty much what i'm looking for and i'd love to receive a copy! If i'm able to make any improvements i could send those back to you.
Thanks MegaGrunt!
OK
glad you liked it, contact me through the email address on my site (above), and I'll send you a copy.
Grateful for any feedback or code improvements.
I'm still learning how to use CVS, lots to read through :O, so it might be a week or two before I get this into the modules page. In the mean time if anyone wants it, feel free to email me.
------------------------------------------
Drupal Specialists: Consulting, Development & Training
Robert Castelo, CTO
Code Positive
London, United Kingdom
----
Commited To CVS
OK, I worked out how to use CVS, and have commited the Nav_table module to the Contributions CVS.
Please download from the Drupal Downloads page, play with it, have fun, and send me lots of feedback.
This is what it looks like at the moment:
Japan Guide
This is what I would like the nav_table module menu to look like in the future (example is hand coded non-Drupal):
Japanese Translation Page
Once all the bugs and performance issues have been sorted out, I'm looking forward to working on the aesthetics a bit more. :)
------------------------------------------
Drupal Specialists: Consulting, Development & Training
Robert Castelo, CTO
Code Positive
London, United Kingdom
----
Excellent module, MegaGrunt
Excellent module, MegaGrunt! Thanks for posting this. I can't wait to try it out. -michael