Re: One plugin, 2 skins?

cpd73 <cpd73.ar01xz-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Mon, 19 Sep 2022 12:46:32 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
mherger wrote: 
> > The issue I have is registering 2 skins from the one plugin.
> Currently
> > the plugin has "MaterialSkin/HTML/material/" - which the UI displays
> as
> > "Material Skin". But how can I register a second? I've hacked around
> 
> Just create another subfolder called "party" or whatever. Then define 
> string tokens in strings.txt for "PARTY_SKIN" etc.?

If I name the folder "party" then that is what LMS shows. Perhaps I was
not clear in my initial request.

I have:

Code:
--------------------
    
  MaterialSkin/
  Plugin.pm
  HTML/
  material/
  index.html
  material-party/
  index.html
  strings.txt
  
--------------------


With the above the skin selector ("Web Interface") in the "Interface"
settings page shows; material-party, Material Skin, Light, Classic,
Default. Its this "material-party" that I want translated to "Material
Skin (Party)". If I name the folder "Material Skin (Party)" then its
shown as is, but is obviously not translated.

"material-party/index.html" is very simple and all it does is
re-redirect the page to "/material/?party" - as the main skin contains
all the code. I only want a second skin so that it can be set as the
default.



*Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json
(Use http: //SERVER:9000/material/?debug=json,cometd to also see update
messages, e.g. play queue) 2. Open browser's developer tools 3. Open
console tab in developer tools 4. REQ/RESP messages sent to/from LMS
will be logged here.
------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=116812