Track Numbers

Talk to other Pedia users about the programs, share tricks and tips or ask questions about existing features.

Track Numbers

Postby kevin.smith.4 » Mon Dec 04, 2006 6:14 pm

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?
kevin.smith.4
Inductee
Inductee
 
Posts: 1
Joined: Mon Dec 04, 2006 2:45 pm

Postby Conor » Tue Dec 05, 2006 3:31 am

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-->
User avatar
Conor
Top Dog
 
Posts: 5235
Joined: Sat Jul 03, 2004 12:58 pm

Postby EricBarstad » Tue Dec 05, 2006 11:39 am

Would an ordered list work instead of an unordered list styled by CSS?
EricBarstad
Bruji Friend
Bruji Friend
 
Posts: 18
Joined: Sat Dec 02, 2006 8:37 pm

Postby Conor » Tue Dec 05, 2006 5:05 pm

That would work as well; but the type attribute has been deprecated in favour of CSS.
User avatar
Conor
Top Dog
 
Posts: 5235
Joined: Sat Jul 03, 2004 12:58 pm


Return to PediaTalk

cron