Page 1 of 1

Tracks and disc N° in Classical template

Posted: Sat Nov 05, 2016 10:12 am
by abraxas
Hi,
I'm doing some modifications to the Classical template to display Disc N° and Track number inside the disc.
Here is the modification:
<!--IFtracks
<div class="tracks">
<ul style="list-style-type: none;">
[tracksBegin]
<div style="margin-bottom: 10px;">
<li>Disque N° [track:disc]</li>
<li>[track:position] - [track:name] [track:duration][durationSeparation: (*)]</li>
IF_Tartist<li style="margin: 0px 0px 0px 10px;">[translate:artist]: [track:artist]</li>END_Tartist
IF_Tcomposer<li style="margin: 0px 0px 0px 10px;">[translate:composer]: [track:composer]</li>END_Tcomposer
</div>
[tracksEnd]
</ul>
</div>
ENDtracks-->

This displays as follows for a 2CD set:

Disque N° 1
1 - Elgar: Symphony No 1 in A-Flat Op. 55 - 1. Andante Nobilmente e Semplice - Allegro (21:39)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 1
2 - Elgar: Symphony No 1 in A-Flat Op. 55 - 2. Allegro Molto (7:03)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 1
3 - Elgar: Symphony No 1 in A-Flat Op. 55 - 3. Adagio (12:15)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 1
4 - Elgar: Symphony No 1 in A-Flat Op. 55 - 4. Lento - Allegro (12:55)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 1
5 - Elgar: Introduction and Allegro, Op. 47 (14:00)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
1 - Elgar: Symphony No 2 in E-Flat Op. 63 - Allegro Vivace e Nobilmente (19:24)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
2 - Elgar: Symphony No 2 in E-Flat Op. 63 - Larghetto (13:50)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
3 - Elgar: Symphony No 2 in E-Flat Op. 63 - Rondo - Presto (8:19)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
4 - Elgar: Symphony No 2 in E-Flat Op. 63 - Moderato e Maestoso (14:26)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
5 - Elgar: Elegy, Op. 58 (4:28)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
6 - Elgar: Sospiri, Op. 70 (5:10)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli

I would like to find a way for displaying the disc only once for each CD. Something like:

Disque N° 1
1 - Elgar: Symphony No 1 in A-Flat Op. 55 - 1. Andante Nobilmente e Semplice - Allegro (21:39)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
2 - Elgar: Symphony No 1 in A-Flat Op. 55 - 2. Allegro Molto (7:03)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
3 - Elgar: Symphony No 1 in A-Flat Op. 55 - 3. Adagio (12:15)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
4 - Elgar: Symphony No 1 in A-Flat Op. 55 - 4. Lento - Allegro (12:55)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
5 - Elgar: Introduction and Allegro, Op. 47 (14:00)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
Disque N° 2
1 - Elgar: Symphony No 2 in E-Flat Op. 63 - Allegro Vivace e Nobilmente (19:24)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
2 - Elgar: Symphony No 2 in E-Flat Op. 63 - Larghetto (13:50)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
3 - Elgar: Symphony No 2 in E-Flat Op. 63 - Rondo - Presto (8:19)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
4 - Elgar: Symphony No 2 in E-Flat Op. 63 - Moderato e Maestoso (14:26)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
5 - Elgar: Elegy, Op. 58 (4:28)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli
6 - Elgar: Sospiri, Op. 70 (5:10)
Artiste: Philharmonia Orchestra, Allegri Quartet, Sinfonia of London/Sir John Barbirolli

Any idea of the way to do that ??

Thanks a lot

Re: Tracks and disc N° in Classical template

Posted: Sat Nov 05, 2016 10:19 pm
by Conor
Thank you for the feedback and the specific example of how you would like to use it. It's something that has come up and I want to implement for a future version. The way the template system is built at the moment it can't handle only repeating one part for the code per disc. It would make for some great looking templates and header sections for the discs, but not yet possible.

Re: Tracks and disc N° in Classical template

Posted: Sun Nov 06, 2016 3:41 am
by abraxas
Thanks Conor,
I look forward for the implementationenabling this feature :)
Best regards