link pdf file with a title Options
vishal
Posted: Tuesday, July 08, 2008 1:59:29 AM
Rank: Newbie

Joined: 7/8/2008
Posts: 2
Location: Fiji
Hi guys

I am a newbie to umbraco and XSLT both. I am trying to do something like this link

http://www.fijifiu.gov.fj/papers.aspx?type=5

In the media section I had added an extra field (document teaser) to the file upload. Then I created the xslt for which lists file from the specfic directory. But the teaser is not shown. Below is my code

<xsl:for-each select="umbraco.library:GetMedia(1132,'true')/node [@nodeTypeAlias = 'File']">
<xsl:sort select="@createDate" order="descending"/>
<xsl:if test="position() &lt;= $itemsToDisplay">
<li><a href="{./data [@alias = 'umbracoFile']}"><xsl:value-of select="@nodeName"/></a></li>

<li><xsl:value-of select="./data [@alias = 'DocumentTeaser']"/></li>

</xsl:if>
</xsl:for-each>

I am really stuck and need some help here.
Petr Snobelt
Posted: Tuesday, July 08, 2008 8:47:49 AM
Rank: Aficionado

Joined: 10/2/2007
Posts: 147
Location: Czech Republic
I'm not sure, but try change
<xsl:for-each select="umbraco.library:GetMedia(1132,'true')/node [@nodeTypeAlias = 'File']">
to
<xsl:for-each select="umbraco.library:GetMedia(1132,true())/node [@nodeTypeAlias = 'File']">
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.