Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
In the old schema I was used to use following code to list images:
<div id="galleryThumbnails"> <ul> <xsl:if test="string($currentPage/data [@alias='pAlbumFolder']) != ''"> <xsl:for-each select="umbraco.library:GetMedia($currentPage/data [@alias='pAlbumFolder'], 'true')/node"> <li> <a href="{umbraco.library:NiceUrl($currentPage/@id)}?picture={./@id}" title="Vis billede"> <img width="120px" height="90px"> <xsl:attribute name="src"><xsl:value-of select="./data [@alias='umbracoFile']" /></xsl:attribute> <xsl:attribute name="alt"><xsl:value-of select="./@nodeName" /></xsl:attribute> </img> </a> <br /> <xsl:value-of select="./@nodeName" /> </li> </xsl:for-each> </xsl:if> </ul> </div>
But this (of cause) don't work in umbraco 4.6.1 with the new schema. What changes are needed to make this work ?
Solved it myself :-)
The scouting way - Learning by doing ....
<div id="galleryThumbnails"> <ul> <xsl:if test="string($currentPage/galleryFolder) != ''"> <xsl:for-each select="umbraco.library:GetMedia($currentPage/galleryFolder, 'true')/*"> <li> <a href="#" title="Vis billede"> <img width="120px" height="90px"> <xsl:attribute name="src"><xsl:value-of select="./umbracoFile" /></xsl:attribute> <xsl:attribute name="alt"><xsl:value-of select="./@nodeName" /></xsl:attribute> </img> </a> <br /> <xsl:value-of select="./@nodeName" /> </li> </xsl:for-each> </xsl:if> </ul> </div>
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
List folder images
Hi
In the old schema I was used to use following code to list images:
But this (of cause) don't work in umbraco 4.6.1 with the new schema. What changes are needed to make this work ?
Solved it myself :-)
The scouting way - Learning by doing ....
is working on a reply...