Hi, I'm working with a drupal 5.x site, rockpeaks.com, and we'd love to use your module to display pages with large trees, such as for instance the mother-of-all-large-trees, at http://www.rockpeaks.com/shows/r/Rockpalast --

I noticed in the README.txt the following:

Requirements
------------------------------------------------------------------------------
This module is written for Drupal 5.0+ and requires the jstools.module to be
enabled.

We do have jstools 5.x already installed.

Can you provide any guidance on what might be required to use the module for drupal 5.x ?

Thank you,
Peter

Comments

pedrochristopher’s picture

Title: Use of module in drupal 5.x && what is an example of the html structure and where to put the ID » Use of module in drupal 5.x?

Followup - jstools 5.x already includes actimenu http://drupal.org/node/57285/release -- I'm still stumbling, however. I'd like to see a full working example. In particular, I want to see where exactly the id="" goes. Is this in the <ul> element? What should be the html structure so that the javascript hooks in properly?

For instance, should it be:

<ul id="#block-book-0"></ul>

Is that enough (then of course add the menu and handlers)?

Thanks,
Peter

pedrochristopher’s picture

Title: Use of module in drupal 5.x? » Use of module in drupal 5.x && what is an example of the html structure and where to put the ID
nedjo’s picture

Title: Use of module in drupal 5.x? » Use of module in drupal 5.x && what is an example of the html structure and where to put the ID

Have a look at the inc files in /modules for sample implementations of hook_activemenu, which returns a selector and the callback that AJAX calls should be passed to. Yes, menus can be identified by ID. Menu items must have the 'expanded' or 'collapsed' class, e.g., <li class="collapsed">item</li>.