By kacash on
I'd like to create a menu where some of the menu are actually forms, including textfields. Much like the navigation system here: http://www.fedspending.org/fpds/index.php
It would be great to be able to integrate this with Drupal's existing menu system, but it looks to be difficult if not impossible. Any thoughts or ideas on this would be appreciated - thank you in advance.
Comments
Hi, I'm not sure you want to
Hi,
I'm not sure you want to be playing around with the menu system. But you could easily create a custom block to generate a select form menu with and "onchange" event to redirect to another page. That's basically what your example site is doing (take a look at the source).
cheers
k
-----------------------------------------
http://www.netrift.com - Custom modules
Thanks for the reply! The
Thanks for the reply! The trick is that I would like to integrate the custom block with the existing menu system.
The example site is not Drupal, just an example of form-as-menu-button.
What you could do is write
What you could do is write your own theme menu funciton. In your theme page.tpl.php, you'll see a theme('links', $primary_links...) .
Just replace the "links" with your own custom theme or just override the links theme all together. Never tried it :)
Of course, in your custom theme function, you'll need to cycle through and generate the apporiate select boxes with the "onchage" javascript.
I don't remember any modules that do this yet.
good luck!
k
-----------------------------------------
http://www.netrift.com - Custom modules