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

Go Back Forums > Modifications / Add-ons > Plugins

Thread Tools
Old 07-29-2015, 02:14 PM   #1
Junior Member
Join Date: Jan 2015
Posts: 28
mduh is on a distinguished road
Default add new column


I would like to add new column to one of the vemgr tables. I redefined list and added new column (mountpoint).

  <metadata name="vm.snapshot" type="list" key="id" keyname="name">
      <toolbtn func="uh.snapshot" name="mount" img="t-snapshotdisk" type="editlist" level="user"/>
      <col name="id" type="data" sort="digit" hidden="no"/>
      <col name="guid" type="data" sort="digit" hidden="no"/>
      <col name="name" type="data" sort="alpha"/>
      <col name="date" type="data" sort="alpha" sorted="asc"/>
      <col name="status" sort="prop">
        <xprop name="usersnapshot" value="on" img="p-user"/>
        <xprop name="usersnapshot" value="off" img="p-root"/>
        <prop name="description" img="p-note"/>
        <xprop name="memdump" value="on" img="p-attach"/>
      <col name="mountpoint" type="data" sort="alpha"/>
In the corresponding plugin I defined output as follows:

elem = "<elem><id>2</id><guid>{267ddcf9-49f1-4f49-a5cb-9368b267b74e}</guid><name>test</name><date>10.06.2015</date><status></status><mountpoint>/mnt/date</mountpoint></elem>"

The contens is rendered, however it seems my output is missing something, as the functions are not working. Is there any way to check what is the original <elem> output to verify how it should look like?

mduh is offline   Reply With Quote
Old 08-05-2015, 09:26 AM   #2
ISPsystem team
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road


Plugin have to have type=xml. Then you need to change that xml and add your elem mountpoint.
fly is offline   Reply With Quote

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 03:56 PM.