I'm new with Webmin and I want do create a custom command.
I want to use the type menu, but I don't know how to fill the menulist. I tried some syntax but the menu stays empty.
I think its easy to solve.
Maybe someone did't a command with am menu parameter before and can tell me how it works.
I know this is an old topic, but I figured I'll add a solution to it for others who have the same problem
To use the "Menu…" type, you need to do the following:
1) create a file on your filesystem that will contain all your menu choices (i.e. /root/myChoices)
actual choice value, what user will see
2) In the custom command, value of the "Menu…" parameter should point to the file you've created in step 1.
Hope this help.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.