CATraxx BoxSet Image in AlbumBrowse.xsl

Discuss the powerful Explorer Templates used in the CAT programs
Post Reply
gschoene
Posts: 5
Joined: Fri Aug 03, 2018 4:06 pm

CATraxx BoxSet Image in AlbumBrowse.xsl

Post by gschoene » Fri Aug 03, 2018 4:48 pm

Hello everybody,
currently I'm stuck in the process of adding an image for boxsets to my AlbumBrowse.xsl
I've already implemented the following code which partially works:

Code: Select all

<xsl:if test="boxset!=''"> 
<a href="CMD:VIEWIMAGE:BoxSet,{boxset/@boxsetid},1"><img border="0" width="150" 
src="{/data/record/boxset/@boxsetid/image1/filename}" class="record_pane_image2"/></a>
</xsl:if>
The VIEWIMAGE CMD works fine , but the src statement for the preview image is wrong and shows an empty frame.

Any ideas ? What am I doing wrong ?
Cheers,

Günter

gschoene
Posts: 5
Joined: Fri Aug 03, 2018 4:06 pm

Re: CATraxx BoxSet Image in AlbumBrowse.xsl

Post by gschoene » Thu Sep 13, 2018 8:24 am

Hello Everybody,
after waiting for some time I tried to contact the maker of this program.
And Frederik helped me with a solution for this problem. Thanks again here.
I'll post the solution here to let everybody know.

Code: Select all

<xsl:if test="/data/record/boxsetdata/image1/filename!=''">
   <a href="CMD:VIEWIMAGE:BoxSet,{boxset/@boxsetid},1"> 
   <img border="0" width="150" class="record_pane_image2" src="{/data/record/boxsetdata/image1/filename}"/></a>
</xsl:if>
Now the boxset image is shown (if available) in albumbrowse.xsl

Thanks for listening.
Cheers,

Günter

Post Reply