Page 1 of 1
Track Numbers
Posted: Mon Dec 04, 2006 6:14 pm
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?
Posted: Tue Dec 05, 2006 3:31 am
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-->
Posted: Tue Dec 05, 2006 11:39 am
by EricBarstad
Would an ordered list work instead of an unordered list styled by CSS?
Posted: Tue Dec 05, 2006 5:05 pm
by Conor
That would work as well; but the type attribute has been deprecated in favour of CSS.