Last update: Tue, May 8, 2012 at 9:43 AM.
Editable menus in static files
  • Radio2 generates two static files, the HTML archive and the Counts page.
  • Wouldn't it be great if these pages could be integrated into your blog? I sure think so. (Answering my own questions again.)
  • Turns out we're very close to being able to pull this off in a fairly elegant way!
    • New routine, webApp.viewMenuFromOpml, with code cribbed from worldOutlineSuite.roots.viewMenu.
    • In the template for the HTML archive, add a <%menu%> item. Unless this feature is enabled, it will be the empty string.
    • Added styles.css and scripts.js to the head section of both templates.
    • Updated scripting2.root to use the same prefs as Radio2.
    • webApp.viewMenuFromOpml
    • radio2suite.inituser
    • radio2Suite.buildHtmlArchive
    • radio2Suite.buildTop40Html
    • scripting2Suite.initUser
    • scripting2Suite.server.setupMacrosTable