By sifuhall on
I have a few scripts that I have linked to drupal and I really need to have the same navigation menu.
Has anyone done this before or have any tips that may save me some time?
I have a few scripts that I have linked to drupal and I really need to have the same navigation menu.
Has anyone done this before or have any tips that may save me some time?
Comments
put it in the theme?
I do this all the time (if I understand correctly).
Just put the menu in the theme.
I'm not sure I understand
I'm not sure I understand what you mean by putting it in a theme.
Let me try an example and perhaps you can help me understand how I would do that.
I have other scripts that were not designed to work with drupal, however, creating links to them from drupal is easy (just add the urls to the menu).
However these scripts that were not designed to work with drupal do not have the navigation menu that drupal has, and I would like to be able to add this to these scripts so the navigation is the same for all scripts.
For example, I am running drupal, but also have a customer billing and help center. I have created links to the billing/help center from within drupal, but I would also like the billing/help center to have the same navigation menu as drupal.
dynamically generated?
I think I understand now...
Drupal has a dynamically generated menu based on nodes in the database.
You need this dynamic menu to show up on other sites (different servers) that have no knowledge of the Drupal database?
I figure you have a few options.
1) Make a theme that has no decoration on it, create a drupal page node that has nothing in it. Your end goal is a URL that shows nothing but the drupal menu on a white background. Use AJAX on your remove sites to grab that page and shove it into your Billing script (for example)
2) Allow database access to the drupal db from your other systems. Port drupal's menu generation code to those systems.
3) Write a cron job that dumps the drupal menu to a static html page. Use AJAX/SSI (depending on location of shadow systems) to pull that static html page into your shadow systems.
Does that help?
I'd recommend Suydam's #3
I'd recommend Suydam's #3 option: Just write a static file with the menu html in it and then pull into your non-drupal page using a php include.
Here's part of the code I
Here's part of the code I use in a custom module to dump my Quick Links menu. I then use a php include statement to show it on the other part of the site
http://www.trailheadinteractive.com
Will this work in Drupal 6?
Will this work in Drupal 6, and could you provide a little more example? I am very new at coding for Drupal.
Sustain open source projects on Gratipay