cpd73 wrote:
> So, in your songinfo plugin, if you return an item with a "weblink" then
> it will work in Material.
Ah, I didn't know about 'weblink'. Is it a specific value for the 'type'
key of the item, or something else ?
Because I tried with 'weblink' instead of 'link' (see below) and the
behaviour seems exactly the same, default or material skin (I get this
error : Cannot request non-HTTP URL ...)
I'm wondering if I'm doing this right, because when inspecting the
element in my browser's dev tools (using default skin), I can still see
a "LMS internal action URL" in the href, although the "Cannot request"
error does indeed show me my resulting custom URL.
But it is -still- not called -directly- , so I'm not sure I used
'weblink' right.
Code:
--------------------
return {
name => 'Open in FileMaker '.$tracktitle,
type => 'weblink',
url => FM_BASEURL.$trackid,
favorites => 0,
};
--------------------
------------------------------------------------------------------------
Stan Pulsar's Profile: http://forums.slimdevices.com/member.php?userid=6669
View this thread: http://forums.slimdevices.com/showthread.php?t=111851
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins