Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Cem Sisman 33 posts 31 karma points
    Dec 30, 2009 @ 22:28
    Cem Sisman
    0

    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>

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Dec 30, 2009 @ 22:40
    Chriztian Steinmeier
    0

    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

  • Cem Sisman 33 posts 31 karma points
    Dec 30, 2009 @ 22:57
    Cem Sisman
    0

    cheers dude, happy new year

Please Sign in or register to post replies

Write your reply to:

Draft