I'm very new to Drupal and I have a bunch of sites to manage that are in different cms's like wordpress, sharepoint and others. My goal is to merge all the content into drupal over time.
I want to manage a master menu in Drupal and when items are added or removed generate a html code snippet representing the menu that the other sites can pick up from the local file system or via a url if they are not.
How can I serve content from a url without the themes and drupal html being applied?
have this url serve a css file
or get a js file from
or from a url like this
get this html snippet ONLY
<div class="nav"> <ul> <li><a href="">Menu Item 1</a></li> <li><a href="">Menu Item 2</a></li> <li><a href="">Menu Item 3</a></li> </ul> </div>
* EDIT * The answer about the menu hook is really close to what i want, but I think i may have confused things by mentioning menus at all.
So I apologise as I didn't make what I am after very clear. Ill try and reword it.
For an arbitrary url I want to return content of any kind from the drupal 7 cms.
Which 'hook' takes the url, matches it to a pattern, and then allows me to send anything back on the response stream, and how do I change the mime types.