{"id":433,"date":"2009-07-13T20:24:43","date_gmt":"2009-07-13T20:24:43","guid":{"rendered":"http:\/\/agraham.org\/blog\/?p=433"},"modified":"2013-02-27T14:47:41","modified_gmt":"2013-02-27T14:47:41","slug":"drop-down-menus","status":"publish","type":"post","link":"http:\/\/agraham.org\/blog\/2009\/07\/13\/drop-down-menus\/","title":{"rendered":"Drop Down Menus"},"content":{"rendered":"<p>I have spent most of this evening wrestling with the <a href=\"http:\/\/\">UDM<\/a> menu on the root of my site. I can get it to import sub-menu items from an external file, but not the main menu items.<\/p>\n<p>So with the menu:<\/p>\n<ul>\n<li>Home &#8211; static<\/li>\n<li>Menu Top &#8211; static\n<ul>\n<li>Sub Menu &#8211; loads dynamically<\/li>\n<\/ul>\n<\/li>\n<li>Another &#8211; static<\/li>\n<\/ul>\n<p>Very frustrating. It would mean doing a search\/replace every time a new top level menu item is added, very annoying. I can&#8217;t see why it would be happy to load the sub items but balk at the top level items.<\/p>\n<p>The reason for experimentation is a site. It started with a catalogue of around 40 pages and quickly grew to about 300 static pages. They then wanted some top level menu items added &#8211; argh. I figured if I can get this done I can change every page once and then update the external sitemap page when necessary. This is only a sop until I have the time and inclination to install a more appropriate site for what she is doing with it now. Spending spare hours here and there make an overhaul slightly difficult and drag over weeks though.<\/p>\n<p>Edit:<\/p>\n<p>The closest I could get was:<\/p>\n<ul>\n<li>Root &#8211; loads dynamically\n<ul>\n<li>Home &#8211; loads dynamically<\/li>\n<li>Menu Top &#8211; loads dynamically\n<ul>\n<li>Sub Menu &#8211; loads dynamically<\/li>\n<\/ul>\n<\/li>\n<li>Another -loads dynamically<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>This of course means you only see &#8220;Root&#8221; on the page and the submenus when you select the menu. With the added bonus that it only works with JavaScript loaded. A colleague has it working on his Asp.Net site loaded into the MasterPage but plain HTML doesn&#8217;t have that luxury.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have spent most of this evening wrestling with the UDM menu on the root of my site. I can get it to import sub-menu items from an external file, but not the main menu items. So with the menu: Home &#8211; static Menu Top &#8211; static Sub Menu &#8211; loads dynamically Another &#8211; static [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[210],"tags":[804,322,320],"class_list":["post-433","post","type-post","status-publish","format-standard","hentry","category-coding","tag-coding","tag-menu","tag-udm"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/posts\/433","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/comments?post=433"}],"version-history":[{"count":11,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/posts\/433\/revisions"}],"predecessor-version":[{"id":2524,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/posts\/433\/revisions\/2524"}],"wp:attachment":[{"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/media?parent=433"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/categories?post=433"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/agraham.org\/blog\/wp-json\/wp\/v2\/tags?post=433"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}