ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   New toolbar button (http://forum.ispsystem.com//showthread.php?t=2463)

mduh 05-14-2015 11:29 PM

New toolbar button
 
Hello,

I would like to add new toolbar button. I have the following code:

Code:

  <metadata name="vm" type="list" key="id" keyname="name" autoupdate="300">
        <toolbar>
            <toolbtn func="uh.console" name="console" img="t-go" type="edit"/>
        </toolbar>
  </metadata>

  <handler name="uh_console.py" type="cgi">
          <func name="uh.console" />
  </handler>

  <lang name="en">
        <messages name="vm">
                <msg name="short_console">Remote console</msg>
                <msg name="hint_console">Remote console</msg>
        </messages>
  </lang>

Unfortunately the new button does not show up. Could you please provide me any clue what am I doing wrong?

Thanks,
-Maciej

usaafko 05-15-2015 05:12 AM

Hello, you need to creata addon/uh_console.py file, smth like
Quote:

#!/bin/bash
cat
This xml is working in our test panel
Quote:

<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
<metadata name="vm" type="list" key="id" keyname="name" autoupdate="300">
<toolbar>
<toolbtn func="uh.console" name="console" img="t-go" type="edit"/>
</toolbar>
</metadata>
<handler name="uh_console.py" type="cgi">
<func name="uh.console" />
</handler>
<lang name="en">
<messages name="vm">
<msg name="short_console">Remote console</msg>
<msg name="hint_console">Remote console</msg>
</messages>
</lang>
</mgrdata>

mduh 05-15-2015 08:40 AM

So simple! Works now, Thanks!


All times are GMT +2. The time now is 06:26 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.