Track Indexed Navigation Subtree
Posted: Fri Apr 20, 2012 12:55 am
Hi All,
Now I have my server working correctly, it's time to set it up how I want it.
First of all, a quick question. I have just upgraded from version 4 to version 7. Why has the navigation tree creation feature been taken out and replaced with an XML based file editing system that you really have to be a programmer to understand?
Anyway, one of the things I am missing is an alphabetically indexed view of all my music tracks. e.g. you select something like 'Tracks' and then you get an A to Z listing of all the track titles and then I can click on say 'C' and I get all the tracks that start with 'C'.
I have been trying to work it out by looking at the current view files and reading the documentation I found, but I just can't get it working. Here is what I did:
To the view-definitions.xml file I added the following:
<container name='tracks' groupid='music/tracks' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='dc:title[1]' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='dc:title' sortcriteria='+dc:title' class='object.container'
createClass='object.item.audioItem.musicTrack'/>
</container>
</container>
I inserted this straight under the line that says <container name='music' id='music'....................
Then in my advanced.view.xml I added the following line:
<link groupid='music/tracks' />
I put this immediately under the line that says
<link id='music/all' />
I then restarted the server completely.
When I browse to music, nothing new shows up. I don't get a track option or anything that wasn't there before.
Is there anything obvious I am doing wrong? Incidently, the server is set to the advanced view. I was expecting a 'Tracks' option in the navigation tree that once selected gave folders labled A to Z.
Now I have my server working correctly, it's time to set it up how I want it.
First of all, a quick question. I have just upgraded from version 4 to version 7. Why has the navigation tree creation feature been taken out and replaced with an XML based file editing system that you really have to be a programmer to understand?
Anyway, one of the things I am missing is an alphabetically indexed view of all my music tracks. e.g. you select something like 'Tracks' and then you get an A to Z listing of all the track titles and then I can click on say 'C' and I get all the tracks that start with 'C'.
I have been trying to work it out by looking at the current view files and reading the documentation I found, but I just can't get it working. Here is what I did:
To the view-definitions.xml file I added the following:
<container name='tracks' groupid='music/tracks' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='dc:title[1]' class='object.container' createClass='object.item.audioItem.musicTrack'>
<container buildon='dc:title' sortcriteria='+dc:title' class='object.container'
createClass='object.item.audioItem.musicTrack'/>
</container>
</container>
I inserted this straight under the line that says <container name='music' id='music'....................
Then in my advanced.view.xml I added the following line:
<link groupid='music/tracks' />
I put this immediately under the line that says
<link id='music/all' />
I then restarted the server completely.
When I browse to music, nothing new shows up. I don't get a track option or anything that wasn't there before.
Is there anything obvious I am doing wrong? Incidently, the server is set to the advanced view. I was expecting a 'Tracks' option in the navigation tree that once selected gave folders labled A to Z.