maf wrote: 
> Could you please recommend documentation to read or code to look at? At
> this point, I'm specifically interested in finding out how to add
> settings to the plugin.

You have to look at other plugins.

Settings appear as LMS preferences 
Settings are added to a plugin usually through a file called Setting.pm
which is initialised from Plugin.pm
There is a settings.html file buried in the html sub directory of a
plugin.  It is a Perl Template file (i.e. it is processed to generate
real HTML)

First - look at setting page of all plugins and understand the different
settings available (e.g. radio, drop down , text box ).  The controls
have an id which will correspond with a perl variable which is how your
plugins gets the data.
Second, sketch out the settings for your plugin. I'd avoid text boxes
unless free user input is absolutely necessary.
Third look at other plugin which has a control like your see how
preferences are used in the plugin, and managed in Settings.pm.  There
are pre-render and post render options (e.g. to set up values, to
validate inputted data)


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=112165

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to