Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 08, 2012 @ 17:56
    Fuji Kusaka
    0

    GetMember infos

    Hi,

    Is it possible to pull all data from the members section by using the MemberPicker dropdown?

    From the dropdown list i choose the member i want to display with certain fields such as title, age and so on.

    I have this working but not showing more detailed infos

    <xsl:for-each select="$currentPage">
         <xsl:variable name="memName" select="promo"/>
          <xsl:if test="$memName!=''">
            <xsl:value-of select="umbraco.library:GetMemberName($memName)"/><br/>
            <xsl:value-of select="$memName/@lastName"/>
        </xsl:if>

     

  • Tom Fulton 2030 posts 4996 karma points c-trib
    Mar 08, 2012 @ 18:07
    Tom Fulton
    1

    Hi Fuji,

    You can use GetMember(int MemberId) instead of GetMemberName to get all the details of the member.

    <xsl:variable name="mem" select="umbraco.library:GetMember($memName)" />
    age:  <xsl:value-of select="$mem/node/age"/> <!-- assuming your member property alias is 'age' -->

    You can do a copy-of to see all the infoyou can get:

    <textarea><xsl:copy-of select="$mem"/></textarea>

    HTH,
    Tom

  • Fuji Kusaka 2203 posts 4220 karma points
    Mar 08, 2012 @ 18:26
    Fuji Kusaka
    0

    Hi Tom,

    Actually was my mistake, yes your right i was using the wrong extension!!!

    <xsl:variable name="memName" select="umbraco.library:GetMember(promo)"/>
        
        <xsl:value-of select="$memName//title"/><br/>
          <xsl:value-of select="$memName//firstName"/><br/>
            <xsl:value-of select="$memName//lastName"/><br/>  
        <xsl:call-template name="profilePic" />

     

    But thanks anyways...

     

    //fuji

  • 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