Placing a drupal menu on an external site I have a drupal install (latest 7.x version at the time of writing). It is in the root directory of my domain.

In a non drupal sub-directory, called 'member' so at /member, I have 3rd party script which enables my site to have membership functionality.

The script inside of /member is not drupal, although it does connect to the drupal database to write to the users table to enable single sign-on.

I was wondering if it is possible to display a drupal menu (the main navigation) inside the script in /member? I want to be able to alter the menu in drupal and then have those alterations automatically updated in the /member script.

I would certainly appreciate any advise as to whether this is in fact possible, and some advice about how I might get started.

Thanks.
Yes, it is possible.
In your drupal website:


Render the main menu block on a custom made (module) page for example /main-menu-external
Strip all the sections but the content section, so that no header, footer, ... is rendered, only the menu.
With context load a blank theme on the page "main-menu-external"
At this point "main-menu-external" will be a blanco page with only the main menu rendered on it AND will use a different theme from the rest of your website so you can configure it for that page only.


In your /members website:


Just put an &lt;iframe&gt; with source "yourdrupalwebsite.be/main-menu-external"


Et voila, there is your drupal menu on an external website :)