Copied to clipboard

Flag this post as spam?

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


  • Roger 195 posts 474 karma points
    Feb 26, 2013 @ 19:08
    Roger
    0

    List sub page thumbnails by a node ID

    Hi all,

    I'm trying to list sub pages as thumbnails from a node id so that I can put the macro anywhere on the site

    Its almost working except its only showing one thumbnail, heres my XSLT

    <xsl:for-each select="umbraco.library:GetXmlNodeById(1185)">
    <li>
    <xsl:if test="count(./* [@isDoc]) &gt; 0">
    <img src="{concat(substring-before(./*/umbracoFile,'.'), '_thumb.jpg')}" style="border: none;"/>

    </xsl:if>
        </li>

    </xsl:for-each>

    any ideas please?

  • Roger 195 posts 474 karma points
    Feb 26, 2013 @ 21:23
    Roger
    0

    Ok, its definitely not working.

    I have a page called hall of fame with a node id of 1185

    This page allows images to be added as sub pages like this

    > Hall of Fame
    >>> Image 1
    >>> Image 2

    etc etc

    I need to show the umbracoFile thumbnail for all the images under this node but I need to be able to add the macro anywhere on the site. Its basically built like a gallery but without the individual gallery folders.

    Can someone please help! This site is going live tomorrow

    Thanks

  • pat 124 posts 346 karma points
    Feb 27, 2013 @ 17:16
    pat
    0

    if you use GetXmlNodebyId it gives only that node, 

    sometimes you can use $currentPage/ancestor-or-self::*

    please see the functions available in umbraco.library here http://our.umbraco.org/wiki/reference/umbracolibrary

     


  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies