ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   General technical discussion (http://forum.ispsystem.com//forumdisplay.php?f=8)
-   -   Add new own field in panel (http://forum.ispsystem.com//showthread.php?t=2970)

bryn1u 04-06-2017 11:47 AM

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 ?

fly 04-12-2017 05:05 AM

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


All times are GMT +2. The time now is 05:23 PM.

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