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

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


Reply
 
Thread Tools
Old 04-06-2017, 11:47 AM   #1
Junior Member
 
Join Date: Apr 2015
Posts: 16
bryn1u is on a distinguished road
Default Add new own field in panel

Hello,

I need to add some filed to the ISPanel called for an example Test and link it to the some web site.

Is it really possible ?
bryn1u is offline   Reply With Quote
Old 04-12-2017, 05:05 AM   #2
ISPsystem team
 
Join Date: Jun 2013
Posts: 233
fly is on a distinguished road
Default

Hello,

To add new field to the ISPmanager you need to create a xml file with field description. File has to be located in /usr/local/mgr5/etc/xml/ directory and has to have name ispmgr_mod_<custom name>.xml

There is an example, it adds a new field to Templates form.

# cat /usr/local/mgr5/etc/xml/ispmgr_mod_settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
<metadata name="preset.edit" type="form">
<form>
<page name="main">
<field name="accesstempl">
<select name="accesstempl"/>
</field>
</page>
</form>
</metadata>
<lang name="en">
<messages name="preset.edit">
<msg name="accesstempl">Function access template</msg>
<msg name="hint_accesstempl">This is a hint</msg>
</messages>
</lang>
</mgrdata>

After file creation you need to restart control panel - killall core
fly 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 10:21 PM.