cancel
Showing results for 
Search instead for 
Did you mean: 

adding a function to the Admin Console (Solved)

michaelc
Champ on-the-rise
Champ on-the-rise
I am trying to add a simple tool to the Admin console and I seem to be missing how it all fits.
I also find the debugger does not seem to stop where I would expect.

So i find the list of tools for the admin console seem to be coming from the script
  classes/alfresco/template/org/alfresco/console.js

    var tools = sitedata.findWebScripts(family);
    but I can't figure out what this script is doing or how to populate with the new entry.

    I can push it in by hardcoding it, but I would like to understand how it should work
2 REPLIES 2

mikeh
Star Contributor
Star Contributor
The "trick" is that the console tools all share the webscript family "admin-console":

i.e.
<family>admin-console</family>
in the .get.desc.xml webscript definition file.

Does that help?

Mike

michaelc
Champ on-the-rise
Champ on-the-rise
Ok . . .
   got it, So I just create mine in the same family

   <webscript>
  <shortname>Admin Console Email Tool</shortname>
  <description>Administration Console - Tool to Email all active users</description>
  <url>/components/console/email</url>
  <family>admin-console</family>
</webscript>

   but how does console-tools tie to the admin-console family ?