Make section titles on Create and Edit pages expanded by default

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

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);

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!

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.

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!

You need to make a similar change to line 307 of /usr/libexec/webmin/virtual-server/edit_domain.cgi

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.

Automatically closed -- issue fixed for 2 weeks with no activity.