What kind of menus do you want, it is just a single albums menu or do
you want a complete set of menus like artists, albums, years, genres
which can be used to browse the subset with "Live" in the album title
?
If you like to experiment with MultiLibrary yourself, you need to
create a new library probably of type "Standard library" and select the
menus you want in the "Included internal menus" and select the
"Customize SQL" option at the bottom. On the next screen, you will see
the raw XML and now you need to replace the SQL inside the <data> and
</data> elements with the one I posted in the previous post.
For example, the complete XML text might look like this if you only
want a "Live Music/Albums" menu:
Code:
--------------------
<?xml version="1.0" encoding="utf-8"?>
<multilibrary>
<library>
<name>Live Music</name>
<libraryorder>50</libraryorder>
<enabledbrowse>1</enabledbrowse>
<track>
<data>
select {library},tracks.id from tracks,albums
where
tracks.album=albums.id and
albums.title like '%Live%' and
tracks.audio=1
group by tracks.id
</data>
</track>
<menus>ml_albums</menus>
</library>
</multilibrary>
--------------------
If you only want a top level "Live Albums" menu, I'd suggest that you
uncheck all "Included internal menus" checkboxes which instead results
in a XML like this:
Code:
--------------------
<?xml version="1.0" encoding="utf-8"?>
<multilibrary>
<library>
<name>Live Music</name>
<libraryorder>50</libraryorder>
<enabledbrowse>1</enabledbrowse>
<track>
<data>
select {library},tracks.id from tracks,albums
where
tracks.album=albums.id and
albums.title like '%Live%' and
tracks.audio=1
group by tracks.id
</data>
</track>
<menus></menus>
</library>
</multilibrary>
--------------------
To get the actual menu, you need to also create a new menu in Custom
Browse plugin of the "Filtered Albums" type and select to limit it to
the library you just created in Multi Library plugin.
--
erland
Erland Isaksson ('My homepage' (http://erland.isaksson.info))
(Developer of 'many plugins/applets'
(http://wiki.slimdevices.com/index.php/User:Erland). If my answer
helped you and you like to encourage future presence on this forum
and/or third party plugin/applet development, 'donations are always
appreciated' (http://erland.isaksson.info/donate))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=86878
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins