hello drupal developers!

i've tried posting this to the list, but all of yesterday's posts are MIA, and i don't seem to be receiving any drupal-devel messages at all since.... anyway, here's my questions:

now that drupal 4.5 has integrated mo'bettah menu control in core, is it possible yet to:

* specify horizontal or verical orientation for a given menu?
* specify menu placement on a per-node/taxonomy basis?
* place menus (as blocks) into areas other than left/right; e.g., top/bottom/inset?

and if any of these don't yet exist:

* are there plans to integrate them at the core level?
* if not, is it possible to leverage a module that adds the above functionality -- without patching core?
* if modifications must be done to the core, what specific obstacles exist?

thanks for your responses, i look forward to reading them.

gerard ryan

Comments

gerardryan’s picture

this question includes administrative control over tabs (and their placement per node as well)... is there a way to add tabbed browsing for taxonomy terms from the administrative menu?

TDobes’s picture

From the admin interface, you can use the primary/secondary links fields to create a link for each taxo term. Of course, this is far from automated... and they won't appear as tabs unless your theme has the appropriate CSS to do so.

The taxonomy_menu module will add the taxonomy terms you specify to the menu structure, but that isn't really "tabs" either. Basically, you'll have to set up the tabs in your theme somehow (either by styling primary links or by styling a menu) and then work from there.

TDobes’s picture

specify horizontal or verical orientation for a given menu?

Yes... you can do this by creating a yourtheme_menu_tree function, basing it upon theme_menu_tree in includes/menu.inc... Actually, you can probably just use some clever CSS, as the menu is currently rendered as an unordered list.

specify menu placement on a per-node/taxonomy basis?

I'm not quite sure what you mean with this one... each menu becomes a block, and you can set blocks to appear/disappear by matching the "path" field to the current path (using a regexp). If you're talking about actually moving the menu based upon the current page, then no... and I'm not sure why we'd want this either. I'm probably misunderstanding what you're asking for.

place menus (as blocks) into areas other than left/right; e.g., top/bottom/inset?

No... this isn't available out-of-the-box with 4.5. Interest has been expressed in improving the block system for 4.6, and hopefully more than the 2-possible-area placement we currently have can be added. In the meantime, you can do a lot by adding PHP to nodes (if you want a menu there) or your theme (if you want a menu at the top/bottom/wherever).

A great deal of interest has been expressed in merging the primary/secondary links (which are rendered as "tabs" here on drupal.org, for example) with the menu system in 4.6. In the meantime, you can use the primary/secondary links as-is for 4.5. They can be configured using static HTML in the themes administration section. You could also set the primary links to something dynamic by (a.) setting the primary links field in the themes admin to empty and (b.) using some conditional PHP to set the $custom_links variable in conf.php. (The example text for this was removed, but it is still supported.)