If you like to see more detail of how to create menus, look at the
"Setup" links referred to in the "Installation" section of the Custom
Browse wiki page.

There are basically two ways to do this kind of menu:
1. 
Start with the "Artists by Letter" menu, choose the "Customize
configuration" option at the bottom and start customizing the XML/SQL
manually. This will be a pretty advanced task (even for me), if SQL and
XML languages aren't already known to you it will be pretty close to
impossible.

2.
Use the Multi Library plugin to define a library for each "tree letter
combination" and create one "Filtered Artists by Letter" menu for each
"tree letter combination" and bind it to the correct library. This will
require more menu configurations, but will be a lot easier.

I'll explain the second alternative in a bit more detail here since my
feeling is that this is the way you want to go.

Creating libraries in Multi Library plugin
==========================================
1. Goto "Extras/Multi Library" on the SqueezeCenter home page and
choose to create a new library of the type "Standard library"
2. Select the "Customize SQL" option at the bottom and hit Next
3. Modify the menu configuration to something like this:

Code:
--------------------
    
  <?xml version="1.0" encoding="utf-8"?>
  <multilibrary>
        <library>
                <name>Artists ABC</name>
                <libraryorder>50</libraryorder>
                <enabledbrowse>0</enabledbrowse>
                <track>
                        <data>
                                select {library},tracks.id from 
tracks,contributor_track,contributors
                                where
                                        contributor_track.track=tracks.id and
                                        
contributor_track.contributor=contributors.id and
                                        contributor_track.role in (1,5) and
                                        substr(contributors.namesort,1,1) in 
('A','B','C') and
                                        tracks.audio=1
                                        group by tracks.id
                        </data>
                </track>
                <menus></menus>
        </library>
  </multilibrary>
  
--------------------

The important parts in this section that differs for each library is:
*"<name>Artists ABC</name>"* The name of the library displayed in the
Multi Library user interface (not necessarily the same as what is shown
in the intermediate menu level later)
*"substr(contributors.namesort,1,1) in ('A','B','C')"* The filtering
which will make sure this library only contains artists in the range of
A, B and C
4. Enter a file name like abc.ml.xml and hit save
5. Repeat step 1-4 for each tree letter combination

Please note that it's really important that the section
"<menus></menus>" looks like that and doesn't contain a lot of menu
definitions in between <menus> and </menus>, the reason is that a lot
of menu definitions there will slow down your system A LOT and you
won't be using them anyway.

Creating menus in Custom Browse plugin
======================================
1. Goto "SqueezeCenter Settings/Custom Browse/Manage menus"
2. Create a new menu of the type "Filtered Artists by Letter"
3. Change the parameters:
- Menu name: ABC
- Menu group: Artists by Letter
- Library: Artists ABC

Please note, that "Menu name" and "Menu group" is intentionally
switched here, the reason is that we really want the menu name to be
"ABC" and we want it to be put in a group (main menu) called "Artists
by Letter".

4. Click "Next" and enter a suitable filename, for example
"filtereddeepartists_abc.cb.values.xml", click "Save"
5. Repeat step 1-4 for each three letter combination.

If I've understood you correctly this should result in pretty much
exactly what you want. It's probably possible to do this without the
Multi Library plugin, but it will get a lot more complex to set it up
since you can't use any of the predefined menu templates in Custom
Browse and need to customize the Custom Browse XML/SQL code manually.


-- 
erland

Erland Isaksson
'My homepage' (http://erland.isaksson.info) 'My download page'
(http://erland.isaksson.info/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan,  Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.isaksson.info/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=52579

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to