Results 1 to 9 of 9

Thread: Question about Default Template

  1. #1
    Join Date
    Apr 2005
    Location
    Posts
    12

    Default Question about Default Template

    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 :-[

  2. #2
    Join Date
    Mar 2004
    Location
    Posts
    312

    Default Re: Question about Default Template

    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.




  3. #3
    Join Date
    Apr 2005
    Location
    Posts
    12

    Default Re: Question about Default Template

    Oops... My mistake. I was talkin' about 'Default theme', not template. Can you help?

  4. #4
    Join Date
    Mar 2004
    Location
    Posts
    312

    Default Re: Question about Default Template

    Which version of OCD are you running?

  5. #5
    Join Date
    Apr 2005
    Location
    Posts
    12

    Default Re: Question about Default Template

    6.0 beta.

  6. #6
    Join Date
    Mar 2004
    Location
    Posts
    312

    Default Re: Question about Default Template

    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/>.

  7. #7
    Join Date
    Apr 2005
    Location
    Posts
    12

    Default Re: Question about Default Template

    Works very nice!
    Thank you!

  8. #8

    Default Re: Question about Default Template

    How would I have to edit the theme so as not to show the artist name at all?

  9. #9
    Join Date
    Mar 2004
    Location
    Posts
    312

    Default Re: Question about Default Template

    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:

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

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

    5. Locate the line that starts with

    Code:
    <!--[if(trackArtist)]-->
    6. Replace that line and the following line with this:

    Code:
    <!--[if($show_artist)]--><!--[if(trackArtist)]--><tr><td></td><td valign=top><i><!--[artistlink]--><!--[trackartist/]--><!--[/artistlink]--></i></td></tr>
    <!--[/if]--><!--[/if]--><!--[/track]--></table>
    If you're running OCD v.6.0 beta 1, you'll have to use this replacement instead:

    Code:
    <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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •