0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

Add a note for new fields

It took me some time to understand that adding fields through the struct hook does not mean that they are automatically displayed in the corresponding virtual list. I think that adding a note here would make life easier to everybody.
This commit is contained in:
Gianluca Giacometti 2021-01-17 23:53:04 +01:00 committed by GitHub
parent 2e0d813bfd
commit e777252f07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,9 @@ function maildir_name_hook($domain, $user) {
Note: Adding a field to $struct adds the handling of this field in
PostfixAdmin, but it does not create it in the database. You have to do
that yourself.
that yourself.
Note: If you add fields here and you want them to be displayed in the
virtual lists, you must also modify the corresponding virtual-list template.
Please follow the naming policy for custom database fields and tables on
https://sourceforge.net/p/postfixadmin/wiki/Custom_fields/
to avoid clashes with future versions of PostfixAdmin.