Due to enormous amounts of spam, the forum has been set to read-only mode.



Reply to topic  [ 3 posts ] 
Audio folders 
Author Message

Joined: Thu Dec 08, 2011 10:54 pm
Posts: 7
Post Audio folders

Is there a way to show the location of the attached audio folders in my album view?

Thanks , Eric


Fri Jun 01, 2012 1:11 pm
Profile
User avatar

Joined: Wed Oct 01, 2003 6:09 pm
Posts: 1142
Location: Location: Location:
Post Re: Audio folders

Hmmm, I'll have to think about this ...

You can certainly show specific file names in the track view, but I'm not sure about a folder in the album view. Strictly speaking it's only the tracks themselves that have files as attachments. The album is not 'attached', as such, to a folder.
Perhaps it's possible to truncate the full file path name in XSL to display only the folder in the album preview pane (help and guidance from others definitely required on this idea!)

Regards

Ken


Fri Jun 01, 2012 2:55 pm
Profile
Site Admin
User avatar

Joined: Fri Nov 22, 2002 3:52 pm
Posts: 13748
Post Re: Audio folders

2378tecdf wrote:
Is there a way to show the location of the attached audio folders in my album view?

Thanks , Eric

Not in album list, but it is possible in the explorer pane if you edit the AlbumBrowse.xsl template and insert this code where you want to display the folder name:

Code:
<xsl:value-of select="@audiofolder"/>


For example below the album title:

Code:
          <!-- Title -->
          <TR CLASS="fieldrowprevpane">
            <TD CLASS="fieldnameprevpane" NOWRAP="">
              <xsl:value-of select="/data/fld/album/title/@name"/>         
            </TD>
            <TD CLASS="fieldvalueprevpane" WIDTH="100%">
              <A HREF="Album.xsl" TARGET="_BLANK"><xsl:value-of select="title"/></A>
              <!-- Add play album link -->
              <xsl:if test="@audioattached='True'">
                <xsl:text> </xsl:text>
                <A HREF="PLAYALL:{/data/record/@id}"><IMG SRC="PlayAlbum.gif" BORDER="0"/></A>
                <xsl:text> </xsl:text>
                <A HREF="CMD:GOTOFOLDER:{@audiofolder}"><IMG SRC="gotofolder.gif" BORDER="0"/></A>
                <xsl:text> </xsl:text>
                <A HREF="CMD:ADDTOPLAYLIST:Album,{/data/record/@id}"><IMG SRC="AddToPlaylist.gif" BORDER="0"/></A>
              </xsl:if>
              <br/>
              <xsl:value-of select="@audiofolder"/>     
         
            </TD>
          </TR>

_________________
Fredrik Nordbakke
www.fnprg.com


Fri Jun 01, 2012 3:04 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.