US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > General technical discussion


Reply
 
Thread Tools
Old 05-14-2015, 11:29 PM   #1
Junior Member
 
Join Date: Jan 2015
Posts: 28
mduh is on a distinguished road
Default 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
mduh is offline   Reply With Quote
Old 05-15-2015, 05:12 AM   #2
Support team
 
Join Date: Oct 2013
Posts: 44
usaafko is on a distinguished road
Default

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>
usaafko is offline   Reply With Quote
Old 05-15-2015, 08:40 AM   #3
Junior Member
 
Join Date: Jan 2015
Posts: 28
mduh is on a distinguished road
Default

So simple! Works now, Thanks!
mduh is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:50 AM.