PDA

View Full Version : Question about Default Template



kallevp
03-08-2006, 12:34 PM
By default this template shows various artists listings like this:

CD1 [1:18:32]
1. Wind Of Change 5:11 play
Scorpions
2. Time To Say Goodbye 4:05 play
Sarah Brightman

But in my opinion much better looks this:

CD1 [1:18:32]
1. Wind Of Change / Scorpions (5:11) play
2. Time To Say Goodbye / Sarah Brightman (4:05) play

Is this change possible?
Any help is appreciated!

Kalle

PS Sorry for my (not so good) english :-[

pheisholt
03-09-2006, 05:24 PM
Hi Kalle

Which template are you referring to? What's the name of the template? Let me know, and I'll show you how to edit it.

There's a Default theme, but as far as I know there is no template called Default.

In case you're not familiar with the distinction between a template and a theme:

- a template is used to generate HTML output. Select Tools | Export to HTML....

- a theme is an OCD skin, if you like. You can change "skin"/theme by selecting View | Preferences... | Theme tab.

kallevp
03-09-2006, 05:48 PM
Oops... My mistake. I was talkin' about 'Default theme', not template. Can you help?

pheisholt
03-09-2006, 06:39 PM
Which version of OCD are you running?

kallevp
03-09-2006, 07:14 PM
6.0 beta.

pheisholt
03-09-2006, 07:42 PM
This is what you have to do:

(It might be wise to make a copy of your Default template, before you attempt to do this)

1. Run DAXEXIT (located in your OrangeCD program folder - c:\program files\orangecd)
2. Open the Default theme (located in the Templates sub folder - c:\program files\orangecd\templates) in DaxEdit (File | Open...)
3. Click the Album page tab in DaxEdit
4. Locate <dax:track> - you can search using CTRL+F
The line containing <dax:track> should look like this:

[code]
<dax:track><tr><td valign=top><dax:tracknum/>.

kallevp
03-09-2006, 08:34 PM
Works very nice! :)
Thank you!

Charles_Litton
03-09-2006, 09:35 PM
How would I have to edit the theme so as not to show the artist name at all?

pheisholt
03-10-2006, 11:46 AM
Hi Charles

This is what you would have to do:

1. Open the theme in DAXEDIT, and select the Declarations tab

2. Locate the album section, which starts with:


album["Album page"] {
3. Add the following line right below the above mentioned line:


show_artist["Display artist name"] : bool = false;
4. Select the Album page tab

5. Locate the line that starts with


<!---->
6. Replace that line and the following line with this:


<!----><!--[if(trackArtist)]--><tr><td></td><td valign=top><i><!----><!----><!----></i></td></tr>
<!----><!----><!----></table>


If you're running OCD v.6.0 beta 1, you'll have to use this replacement instead:


<dax:if($show_artist)><dax:if(trackArtist)><tr><td></td><td valign=top><i><dax:artistlink><dax:trackartist/></dax:artistlink></i></td></tr>
</dax:if></dax:if></dax:track></table>


That's it.