D
D
Dmitry2017-04-09 19:08:20
ISPmanager
Dmitry, 2017-04-09 19:08:20

How to add your own column to the users section of isp manager?

Advise, colleagues, where to look? Now I did the following:
/usr/local/mgr5/etc/sql/
created the users.addon folder
in it the comment file (empty, without extension)
/usr/local/mgr5/etc/xml/
created the ispmgr_mod_comments.xml file

<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
    <metadata name="user.edit">
        <form>
            <page name="main">
                <field name="comment">
                    <input type="text" name="comment"/>
                </field>
            </page>
        </form>
    </metadata>
    <metadata name="user" type="list">
        <coldata>
            <col name="comment" after="fullname" type="data" />
        </coldata>
    </metadata>
    <lang name="ru">
        <messages name="user.edit">
            <msg name="comment" sqlname="comment">Комментарий</msg>
        </messages>
    </lang>
</mgrdata>

As a result:
I see the column, but I don’t see the values, although everything is in the form (I can add and save)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question