Discuss the powerful Explorer Templates used in the CAT programs
-
Peerli
- Posts: 30
- Joined: Sun Sep 06, 2015 3:54 pm
Post
by Peerli » Sun Jan 14, 2018 11:01 am
Hallo.
Ich möchte gern beim Audio Player von CATraxx ein paar Änderung bzw. Ergänzungen einfügen, scheitere aber an der Ausführung.
I would like to insert a few changes or additions to the audio player of CATraxx, but fail because of the execution.
Ich möchte unterhalb des momentanen Titel das dazugehörige Release Year hinzufügen.
I would like to add the corresponding Release Year below the current title.
Code: Select all
<td valign="top" class="audioplayer_artist_title">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<xsl:call-template name="format-artist">
<xsl:with-param name="artists" select="/data/record/trackdata/artists"/>
<xsl:with-param name="newwindow" select="'True'"/>
<xsl:with-param name="hyperlink" select="'True'"/>
<xsl:with-param name="templatefile" select="'IMAGECAROUSEL'"/>
<xsl:with-param name="favoriteplaylink" select="'True'"/>
<xsl:with-param name="favoriteplaylink_ratingvalue" select="'5'"/>
</xsl:call-template>
</td>
</tr>
<tr height="3">
<td>
</td>
</tr>
<tr>
<td>
<a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
<a href="TrackList_Songwriter.xsl?Title={/data/record/trackdata/title}@validate=yes,2,3@orderby=artist,title@xslparam:doctitle={/data/fld/track/title/@name}: {/data/record/trackdata/title}" target="_blank">
<img border="0" src="GoToPage.gif"/>
</a>
</td>
</tr>
<tr>
<td>
<a href="Track.xsl" target="_blank"><xsl:value-of select="/data/fld/track/released/@name"/></a><xsl:text> </xsl:text>
<a href="TrackList._Released.xsl?Released={/data/fld/track/released/@name}: {released/@year}" target="_blank">
<<xsl:value-of select="released"/>
</a>
</td>
</tr>
</table>
Wo liegt hier der Fehler?
Where is the error?
Regards
Peer
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by Alex Ivanovich » Mon Jan 29, 2018 1:53 pm
Hi Peerli,
you can enter some screenshots to better explain where you want to change
I do not use CATraxx (I use BookCAT)
maybe I can help you

-
Peerli
- Posts: 30
- Joined: Sun Sep 06, 2015 3:54 pm
Post
by Peerli » Tue Jan 30, 2018 9:01 pm

- Cat_Audioplayer2.jpg (64.5 KiB) Viewed 1899 times

- Cat_Audioplayer.jpg (216.44 KiB) Viewed 1899 times
Thanks for your help.
Regards
Peer
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by Alex Ivanovich » Wed Jan 31, 2018 8:02 am
Hi Peerli,
this work
open AudioPlayer.xsl
find this line
Code: Select all
<td>
<a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
<a href="TrackList_Songwriter.xsl?Title={/data/record/trackdata/title}@validate=yes,2,3@orderby=artist,title@xslparam:doctitle={/data/fld/track/title/@name}: {/data/record/trackdata/title}" target="_blank">
<img border="0" src="GoToPage.gif"/>
</a>
</td>
</tr>
</table>
insert after table
Code: Select all
<xsl:text> </xsl:text>
<xsl:if test="/data/record/trackdata/released/@year!=''">
<xsl:value-of select="/data/record/trackdata/released/@year"/>
</xsl:if>
-
Attachments
-

- CATraxx Audio Player - _Musica.mdb 2018-01-31 11.00.18.png (76.26 KiB) Viewed 1886 times
-
Peerli
- Posts: 30
- Joined: Sun Sep 06, 2015 3:54 pm
Post
by Peerli » Thu Feb 01, 2018 3:36 pm
Hi Alex.
Thanx.
Code: Select all
<tr>
<td>
<a href="Track.xsl" target="_blank"><xsl:value-of select="/data/record/trackdata/fulltitle"/></a><xsl:text> </xsl:text>
<a href="TrackList_Songwriter.xsl?Title={/data/record/trackdata/title}@validate=yes,2,3@orderby=artist,title@xslparam:doctitle={/data/fld/track/title/@name}: {/data/record/trackdata/title}" target="_blank">
<img border="0" src="GoToPage.gif"/>
</a>
</td>
</tr>
<tr>
<td>
<xsl:text> </xsl:text>
<xsl:if test="/data/record/trackdata/released/@year!=''">
<xsl:value-of select="/data/record/trackdata/released/@year"/>
</xsl:if>
</td>
</tr>
Regards
Peer
-
Alex Ivanovich
- Posts: 326
- Joined: Mon Sep 07, 2015 2:24 pm
- Location: Russian - Italia
Post
by Alex Ivanovich » Thu Feb 01, 2018 3:54 pm
you're welcome
thanks my teacher (Dave)

-
Cally
- Posts: 42
- Joined: Wed Sep 16, 2015 6:25 am
- Location: Germany
Post
by Cally » Tue Feb 12, 2019 7:58 pm
Hello to all catraxx-lovers,
is it possible to show in player-xsl the field track-memo?
I would like to place it instead of the "personal rating".
Thanks a lot
Martin
-
gschoene
- Posts: 13
- Joined: Fri Aug 03, 2018 4:06 pm
- Location: Germany
Post
by gschoene » Wed Feb 13, 2019 9:10 am
Hi Calli,
shure you can. Add this to your audio player xsl. It's just a modification of the lyrics section.
Code: Select all
<!-- notes -->
<tr>
<td class="audioplayer_fieldname">
<xsl:value-of select="/data/fld/track/notes/@name"/>
</td>
</tr>
<tr>
<td class="audioplayer_fieldvalue">
<table cellpadding="0" cellspacing="0">
<tr>
<td>
<xsl:if test="/data/record/trackdata/notes!=''">
<xsl:call-template name="add-line-breaks">
<xsl:with-param name="string" select="/data/record/trackdata/notes"/>
</xsl:call-template>
<br/>
</xsl:if>
<a href="CMD:EDITMEMO:track,notes,{/data/record/trackdata/trackid/@unformatted}"><img src="EditMemo.gif" class="audioplayer_editnotes_image" border="0"/></a>
</td></tr>
</table>
</td>
</tr>
Have fun.
Cheers,
Günter
-
Cally
- Posts: 42
- Joined: Wed Sep 16, 2015 6:25 am
- Location: Germany
Post
by Cally » Wed Feb 13, 2019 9:17 pm
Danke Günter,
werde es probieren und berichten...
Grüße, Martin