I am trying to create a list of all fields on subpages and it works fine for text-fields (Tiny mce). But when I try to extract the content of an upload field with an image - i get nothing. I have seen some of the postings concerning Getmedia and 4.5.2 - but I can't get it woorking.
Getmedia U v. 4.5.2
I am trying to create a list of all fields on subpages and it works fine for text-fields (Tiny mce). But when I try to extract the content of an upload field with an image - i get nothing. I have seen some of the postings concerning Getmedia and 4.5.2 - but I can't get it woorking.
My code i quite simple.......
when I run
<a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a>
<xsl:value-of select="kunde_TXT" disable-output-escaping="yes"/>
<br />
<xsl:value-of select="picture" disable-output-escaping="yes"/>
<br />
I get the
- the name of the subpage
- the text in "Kunde_TXT "
- the filename (including the path) of "pictue"
But when i run
<xsl:if test="$currentPage/picture !=''">
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/picture , '0')" />
<xsl:variable name="alt" select="umbraco.library:GetMedia($currentPage/picture , 0)/@nodeName" />
<img src="{$media/umbracoFile}" alt="{$alt}"/>
</xsl:if>
i get nothing.
Any ideas- Thx / Poul
Hi,
i believe in new xml schema getMedia should work like this:
<xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/picture , '0')/Image" />
Hope it helps.
is working on a reply...