Changing admin menu
wheatplanter-/[email protected] (curious about Xaraya) Mon, 8 Mar 2004 21:12:47 +0000 (UTC)
| Newsgroups | gmane.comp.cms.xaraya.ui |
|---|---|
| Organization | Xaraya News Server |
| Message-ID | <[email protected]> |
I would like to overwrite the admin and user menus in my theme. I would like to implement a spiffy javascript driven tree menu for both. In the xhtml <head> tags, I'd like to call two javascripts, one to initialize the display properties of the menu, and the other to intialize the menu tree structure. When needed, the call to display the admin-menu should be set of simple calls like this: //initialize the menu display properties (idealy in <head>) <script language="JavaScript" src="somedir/somefile.js"></script> //initialize the menu tree structure (idealy in <head>) <script language="JavaScript" src="somedir/somefile.js"></script> //display the tree <script language="JavaScript"> new menuTree (treename, treeStructure, treeDisplayProperties); </script> I would like to dynamically generate the treeStructure in a way similar how <modules>/<adminpanels>/<xartemplates>/<blocks>/verticallistbycats.xd generates the links in the admin menu. My questions are: 1.) How do I write and call javascript code that can loop through the data structures (#$stuff#) that the .xd template uses. 2.) Where is the appropriate place in my theme directory for such a .js file? 3.) How do I control the headers for the javascript files? (I'd like to instruct browsers to cache the javascript file that initialized the tree display properties and disable caching of the javascript file responsible for describing the menu tree structure). 4.) Should I call the javascript tree menu in <modules>/<adminpanels>/<xartemplates>/<blocks>/verticallistbycats.xt or somewhere else?