Copied to clipboard

Flag this post as spam?

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


  • Sam dalton 5 posts 25 karma points
    Aug 14, 2012 @ 02:48
    Sam dalton
    0

    Displaying variable content from child page

    Hi,

    I have created a client page which has Client name, Slideshow images, Client link and so on.

    I am using this code

    <xsl:variable name="showcaseClientName" select="/macro/showcaseClientName"/>

    <h3>Client</h3>
    <xsl:if test="$showcaseClientName">
    <p><xsl:value-of select="$showcaseClientName"/></p>
    </xsl:if>
    to display client name on particular page
    but problem is I want to display content like thumbnail image, title and short description in the parent page.
    Structure:
    Client parent page
    ---- Client 1
    ---- Client 2
    ---- Client 3
    ....
    This code does display childpage name and link 
    <a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a>
    But I am not able to show description, image or client name created on the child page using variable. Has anyone done it before. Thanks in advance.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Aug 14, 2012 @ 09:31
    Jeroen Breuer
    0

    Here is an example to show an image: http://our.umbraco.org/wiki/reference/umbracolibrary/getmedia

    Jeroen

  • Sam dalton 5 posts 25 karma points
    Aug 15, 2012 @ 09:01
    Sam dalton
    0

    I tried it but does not show anything. Is http://our.umbraco.org/wiki/reference/umbracolibrary/getmedia for extracting media file from child page?

  • Sam dalton 5 posts 25 karma points
    Dec 17, 2012 @ 07:06
    Sam dalton
    0

    Is there anyone who has done this before or have any suggestion?

Please Sign in or register to post replies

Write your reply to:

Draft