Submitted by yngens on Mon, 06/23/2014 - 19:18
On "Create Virtual Server" or "Edit Virtual Server" pages the only expanded by default section is "Virtual server details". We are trying to get MUST TO ENTER values from customers through creating custom fields in "Additional information" section which is unfortunately is not expanded, so not very much noticeable. However, if possible, we would rather have all sections on these two pages expanded by default. Or make this feature configurable on Virtualmin sections and leave this to decide to Virtualmin admin user to set.
Thank you for consideration and meanwhile can you recommend any temporary workaround. We prefer not to hack Virtualmin/Webmin's core file, but this is one situation when we really have to if there is no other workarounds.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Mon, 06/23/2014 - 22:06 Comment #1
I can easily make that section open by default if there are any custom fields in the next release.
It is a simple matter of editing
/usr/libexec/webmin/virtual-server/domain_form.cgi
and changing lines 501-502 to :print &ui_hidden_table_start($text{'edit_customsect'}, "width=100%", 2,
"custom", 1);
Submitted by yngens on Mon, 06/23/2014 - 22:56 Comment #2
Great, but it only expands for Create page, what about Edit page? Wgat file and lines I should edit to get this done?
I would love if you could take this into next official release, however not all Virtual users might like it. So I thought that maybe it is possible to leave this as additional Virtualmin configuration option to admins? If that's more difficult then please expand all sections, not only "Additional information" section, so that the Create and Edit page looked nice.
Thanks!
Submitted by JamieCameron on Tue, 06/24/2014 - 01:17 Comment #3
Ae you sure you want all sections expanded? That would make the page pretty big, and many of the sections contain options that are rarely used - hence they are hidden by default.
Submitted by yngens on Tue, 06/24/2014 - 02:01 Comment #4
You are right, just "Additional information" will do as import custom fields required end-users' attention will be in that section. Can you please tell me how can expand that section for Edit page for now? Thanks!
Submitted by JamieCameron on Tue, 06/24/2014 - 22:57 Comment #5
You need to make a similar change to line 307 of
/usr/libexec/webmin/virtual-server/edit_domain.cgi
Submitted by yngens on Wed, 06/25/2014 - 00:14 Comment #6
Excellent. Thank you!
If you will take this request into the Virtualmin core, then you could make it to expand the section only if there are any custom fields added.
Submitted by Issues on Wed, 07/09/2014 - 00:21 Comment #7
Automatically closed -- issue fixed for 2 weeks with no activity.