auster;624688 Wrote: 
> 
> 4) The new menu should looked just as standard iPeng menu above: for
> every album I want to see album name, album artist and year. The album
> artist and year are listed on their own rows and with smaller font than
> album name.
> 
> So far I have managed to create a new menu which is almost the way I
> want, but not quite. I am still having my menu under the Custom Browse
> menu and I haven’t managed to fullfill my requirements #4. The albums
> are listed in correct order, I can see album name and year (with
> smaller font than album name and also separate rows). I can show album
> artist instead of year, but not both of them (album artist and year) as
> I want.
> 
Ok, this simplifies it a bit as I assume this means you are able to
experiment with the XML/SQL yourself. 

The trick to get multiple rows is to use the "jivepattern" element.
The jivepattern element is a regular expression with matching groups
within (), it will be matched towards the returned string from the SQL
and each matching group will be shown on a separate row. 

So for example:
<jivepattern>^(.*)\s\((.*)\)$</jivepattern>

Means that everything before ( will be shown on the first row and
everything within the ( and ) will be shown on the second row.

So if the SQL returns:
Some album (artist1, artist2)

The result in iPeng will be:
Some album
artist1,artist2

My guess is that you probably want to have a matching pattern that
looks something like:
<jivepattern>^(.*)\s\((.*)\)\s\((.*)\)$</jivepattern>
Which means that if you make the SQL result look like:
Some album (artist1, artist2) (1985)

It will in iPeng be show as:
Some album
artist1, artist2
1985


-- 
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=86949

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

Reply via email to