|
Date: 2/14/2008 4:17 pm · Subject: Templating the AdminBar · Rating: 2
Has anyone out there customized their Admin Bar macro? I found some code for our old Admin Bar that we had customized by using the general javascript function to build the panels and slider then if you look below you see we were using WebGUI tmpl_loops to build our own bar from scratch. The question is, does anybody know if there are temlate loops and variable available through the adminBar macro? Thanks, Nate Custom AdminBar Template Excerpt ------------------- panel = new createPanel("adminConsole","Admin Console"); <tmpl_loop adminConsole_loop> <tmpl_loop items> <tmpl_if canUse>panel.addLink("<tmpl_var icon.small>","<tmpl_var title escape=JS>","<tmpl_var url escape=JS>");</tmpl_if> </tmpl_loop> </tmpl_loop> slider.addPanel(panel);
slider.addPanel(panel); if('Admins");') { panel = new createPanel("websitego","WebSite GO Tools"); panel.addLink("adminConsole/small/help.gif","WebSite GO User Help","help"); panel.addLink("adminConsole/small/users.gif","My Account Information",""); panel.addLink("assets/small/image.gif", " Global Images", "root/images/");
panel.addLink("assets/small/folder.gif", " CSS", "css?func=manageAssets"); panel.addLink("assets/small/folder.gif", " Root", "root?func=manageAssets"); panel.addLink("assets/small/folder.gif", " Templates", "templates?func=manageAssets"); }
--- (Edited on 2/14/2008 4:17 pm [GMT-0600] by philadev) ---
|