Re: [webmin-l] creating custom command menu key/value conf

"Jamie Cameron" <[email protected]>
Newsgroups gmane.comp.web.webmin.general
Message-ID <[email protected]>
On 02/Jul/2016 08:22 dl <[email protected]> wrote ..
> It seems that I need a refresher course on creating and referring to
> key/value menu in a custom command creation.
> I'm sure I had this working in earlier use of webmin.
> 
> First I created menu.conf as test file in new folder
> /etc/webmin-menus/menu.conf
> 
> line-1 value1
> line-2 value2
> line-3 value3
> 
> I created a (cloned) custom command which requires a directory to be
> selected from menu and set
> 
> Parameter name: directory
> Description: choose directory
> Type: Menu
> Value: /etc/webmin-menus/menu.conf
> Quote: No
> Required: Yes
> 
> Saved.
> 
> However no menu list is seen when I run the command.
> 
> Next I tried setting Value: to a local path.   menu.conf
> (placed in folder containing command ... 1467461630.cmd 1467461630.html)
> 
> But still I see no menu when I run command.
> 
> I've tried both comma and space as separators in key/value.
> 
> What syntax should I use?

That syntax looks fine to me. In the file, the first column should be the
value you want passed to your command, and the second column what is displayed
in the menu.

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.