Re: genre browser
kristian kvilekval <[email protected]> Fri, 08 Apr 2005 11:28:07 -0700
| Newsgroups | gmane.comp.audio.zinf.devel |
|---|---|
| Message-ID | <[email protected]> |
This line actually worked: <node text='Genres' icon='zinf-music-library' url='zinf://genre'> Could you explain or point me to the code how "node" and "list" work? On Fri, 2005-04-08 at 19:00 +0100, David Hough wrote: > On Thu, 07 Apr 2005 23:22:08 +0100, kristian kvilekval <[email protected]> > wrote: > > > > > Dave does your new XML tree allow > > one to browse by genre? > > > > i.e. > > > > <node text='Genre' icon='zinf-Genre' url='zinf://genre' /> > > <list type='url'> > > </list> > > </node> > > > > Yeah, any valid url that the musicdb can understand is usable, so you can > effectively sort by anything including genre. However the snippet you gave > probably won't give the expected results as it's actually equivalent too, > > <node text='Genre' icon='zinf-genre'> > <list url='zinf://url' /> > <list url='zinf://genre' /> > </node> > > This is because when you specify a url for a node it checks if its > expandable, and if so appends a child list with that url. If you just > specify a type for a list whose parent is a node and not a list, it > assumes you want a list of all those items, so converts it too > "zinf://type", hence the url='zinf://url'. > > What you actually want is > > <node text='Genre' icon='zinf-genre'> > <list url='zinf://genre'> > <list type='url' /> > </list> > </node> > > > And yes, the exact syntax of the XML could probably do with some work. > > Cheers, > David -- Kristian Kvilekval [email protected] http://www.cs.ucsb.edu/~kris w:805-893-2526 h:504-9756 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click