Track Numbers

Talk to other Pedia users about the programs, share tricks and tips or ask questions about existing features.
Post Reply
kevin.smith.4
Inductee
Inductee
Posts: 1
Joined: Mon Dec 04, 2006 2:45 pm

Track Numbers

Post by kevin.smith.4 »

I'm working on a template for exporting and would like to include track numbers next to the track names. Any thoughts on how to generate the numbers automatically?
User avatar
Conor
Top Dog
Posts: 5337
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Post by Conor »

Use CSS list-style-type to add the numbers. We do it with some of the info templates, if you like to copy our code go to CDpedia.app/Contents/Resources/WebViewFiles/en/classical.html. But here it is with decimal numbers:

Code: Select all

<!--IFTracks
<ul style="list-style-type: decimal;">
[TracksBegin]
<li>[Track:Song] - [Track:Artist] [Track:Duration][DurationSeparation: (*)]</li>
[TracksEnd]
</ul>
ENDTracks-->
EricBarstad
Bruji Friend
Bruji Friend
Posts: 18
Joined: Sat Dec 02, 2006 8:37 pm

Post by EricBarstad »

Would an ordered list work instead of an unordered list styled by CSS?
User avatar
Conor
Top Dog
Posts: 5337
Joined: Sat Jul 03, 2004 12:58 pm
Contact:

Post by Conor »

That would work as well; but the type attribute has been deprecated in favour of CSS.
Post Reply