From: PEOPLES, M. P <mp...@at...> - 2016-02-17 13:02:44
|
It has been a while since I’ve created a custom module, but I believe you need to examine other code within Webmin that provides a similar function. For example, the “Software Packages” module has an icon next to the “From local file” input box. If you click this icon, you get a file listing from which you can select a file to installation. What you need to do is look at the underlying web page code using a tool like Firefox’s firebug. There you will see that clicking that icon invokes the “chooser.cgi” script. In this case I believe that is pointing to /usr/libexec/webmin/chooser.cgi. You should then examine how this code is used for your particular application. Hope this helps. Michael Peoples (mp4783) Global Customer Service Dev Ops Office: +1 614-886-0923 Mobile: +1 614-886-0923 Principal Applications Developer mp...@at...<mailto:mp...@at...> From: Dennis Damalie [mailto:den...@ya...] Sent: Wednesday, February 17, 2016 6:04 AM To: web...@li... Subject: [webmin-devel] View files(.conf,.txt etc) in webmin module Hello All, I am developing a custom webmin module which includes the option of viewing files that been created within the module . I would be grateful if I am can be pointed how I can approach this . What I would like to know is , if there are a number of files in the directory how can I click on a particular file for it to show its file contents . Thank you . |