I ended up changing some other code show that i had the id to work with. however cant seem to work out why this isnt working. after i get a member i can display them
with this...<xsl:value-of select="$member"/>... and it works fine, showing the member and all their properties.
but when i just want to show on property...<xsl:value-of select="$mxml/firstName"/>.. nothing is returned even though there is definitely a value there?
OOPS <xsl:value-of select="$mxml/firstName"/> is actually <xsl:value-of select="$member/firstName"/> i changed the variable name so it made more sense on here.
That's why the $member/firstName didn't return any value.
Like you said you can use the star(*)-selector, or else you should use the $member/node/firstName to be a little more specific. But that's your choice :)
how can i get members by login name in xslt
i know i can get them via the id with umbraco.library.GetMember(@id) but i need to access them by referencing the login name. any ideas?
I ended up changing some other code show that i had the id to work with. however cant seem to work out why this isnt working. after i get a member i can display them
with this...<xsl:value-of select="$member"/>... and it works fine, showing the member and all their properties.
but when i just want to show on property...<xsl:value-of select="$mxml/firstName"/>.. nothing is returned even though there is definitely a value there?
OOPS <xsl:value-of select="$mxml/firstName"/> is actually <xsl:value-of select="$member/firstName"/> i changed the variable name so it made more sense on here.
Hi Phil.
Could you try to show us what the XML output of this is:
And you are totally sure that your alias is spelled firstName right? Not using a capital F or a lowercase n or something like that.
/Kim A
<xsl:value-of select="$member/*/firstName"/> fixed this.
Ahh yeah of course. When you use the GetMember extension like that, the returned XML looks something like this:
That's why the $member/firstName didn't return any value.
Like you said you can use the star(*)-selector, or else you should use the $member/node/firstName to be a little more specific. But that's your choice :)
/Kim A
ahh right. that makes sense. i was completely confused why this was happening. thanks kim.
is working on a reply...
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.