Hi all,
how can I modify the view-definitions.xml so that I have a grouping of musik by year?
Greetings
Peter
Music - Group by Year
- phibertron
- Posts:1566
- Joined:Sun Jan 30, 2011 5:52 pm
- AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000
Encoders
========
Handbrake
x264
ffmpeg
mencoder
Tagging
======
mp3tag
Re: Music - Group by Year
In all or just to the view.xml that you use
Add this to the <container id='music'>, like the others are
<link groupid='music/year' />
In the view-definitions.xml
Add this into music section, like the others in <container name='music'
<container name='By Year' groupid='music/year' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
<container buildon='pv:year' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' />
</container>
Add this to the <container id='music'>, like the others are
<link groupid='music/year' />
In the view-definitions.xml
Add this into music section, like the others in <container name='music'
<container name='By Year' groupid='music/year' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
<container buildon='pv:year' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' />
</container>
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497
- phibertron
- Posts:1566
- Joined:Sun Jan 30, 2011 5:52 pm
- AV Hardware:Hardware
========
WHS - HP Ex495
PS3
XBOX 360
iTouch - Gen 2 and Gen 3
PSP - 3000
Encoders
========
Handbrake
x264
ffmpeg
mencoder
Tagging
======
mp3tag
Re: Music - Group by Year
You could also do this to add album under year to make it more manageable
<container name='By Year' groupid='music/year' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
<container buildon='pv:year' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' >
<container buildon='upnp:album' albumart='1' sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' createClass='object.item.audioItem.musicTrack' class='object.container.album.musicAlbum' />
</container>
</container>
<container name='By Year' groupid='music/year' class='object.container.storageFolder' createClass='object.item.audioItem.musicTrack'>
<container buildon='pv:year' createClass='object.item.audioItem.musicTrack' class='object.container.storageFolder' >
<container buildon='upnp:album' albumart='1' sortcriteria='+pv:numberOfThisDisc,+upnp:originalTrackNumber' createClass='object.item.audioItem.musicTrack' class='object.container.album.musicAlbum' />
</container>
</container>
viewtopic.php?f=2&t=10627
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497
viewtopic.php?f=2&t=9353
viewtopic.php?f=2&t=9408
viewtopic.php?f=2&t=9416
viewtopic.php?f=2&t=9424
viewtopic.php?f=2&t=9364
viewtopic.php?f=2&t=9497