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
1166 is the id of the media folder. it doesnt even display "ss" static text at all. any solution? thanks.
<xsl:variable name="mm" select="umbraco.library:GetXmlNodeById(1166)"></xsl:variable>
<ul class="foto-list">
<xsl:for-each select="$mm/node">
ss
<xsl:variable name="m" select="umbraco.library:GetMedia(./@id)"></xsl:variable>
<li>
<a href="{$m/data [@alias='umbracoFile']}" rel="lightbox" title="{$m/@nodeName}">
<img style="width:122px; height:89px;" src="{$m/data [@alias='umbracoFile']}" alt="" />
</a>
</li>
</xsl:for-each>
</ul>
You can't get Media nodes with the GetXmlNodeById() method - use the GetMedia() function with true() or 1 as the second argument to return the folder contents:
<xsl:variable name="mm" select="umbraco.library:GetMedia(1166, true())" />
/Chriztian
cheers dude, happy new year
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Cant get all images from the media library from a specific folder
1166 is the id of the media folder. it doesnt even display "ss" static text at all. any solution? thanks.
<xsl:variable name="mm" select="umbraco.library:GetXmlNodeById(1166)"></xsl:variable>
<ul class="foto-list">
<xsl:for-each select="$mm/node">
ss
<xsl:variable name="m" select="umbraco.library:GetMedia(./@id)"></xsl:variable>
<li>
<a href="{$m/data [@alias='umbracoFile']}" rel="lightbox" title="{$m/@nodeName}">
<img style="width:122px; height:89px;" src="{$m/data [@alias='umbracoFile']}" alt="" />
</a>
</li>
</xsl:for-each>
</ul>
You can't get Media nodes with the GetXmlNodeById() method - use the GetMedia() function with true() or 1 as the second argument to return the folder contents:
/Chriztian
cheers dude, happy new year
is working on a reply...