Example
how to add phpPgAdmin to ISPmanager main menu.
This example helps you to understand how it works and then you can self link other products (webmails, log analysers, scripts for install forums, guestbooks .......)
at first you should have installed phpPgAdmin.
for example you already can access it
https://your.domain.com/pgadmin/
and you wish integrate this link to ISPmanager main menu
well.
all below configs located at /usr/local/ispmgr/etc
1. Open file 'config' and add line 'extaction phppgadmin /pgadmin/'
2. Create message file msg_en.local.xml (
don't edit msg_en.xml !!!)
my msg_en.local.xml for this example:
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<messages>
<desktop>
<msg name="menu_phppgadmin">PhpPgAdmin</msg>
</desktop>
</messages>
|
also you can create message files for other languages
3. Create local menu mainmenu.local.xml (
don't edit mainmenu.xml !!)
Quote:
<?xml version="1.0" encoding="UTF-8"?>
<mainmenu>
<navigation level="7">
<node name="ext">
<node name="phppgadmin"/>
</node>
</navigation>
<navigation level="5">
<node name="ext">
<node name="phppgadmin"/>
</node>
</navigation>
</mainmenu>
|
4. restart ISPmanager (killall ispmgr)
in this example '
phppgadmin' is internal function name