Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have try to retrieve member info in my text box. (an ecommerce site, while ordering i want to get member info automatically)
and i have use fallowing code, but it returns noting,
<div class="informationFieldWrap firstName"> <label for="firstName"> <span class="required">*</span> <xsl:value-of select="umbraco.library:GetDictionaryItem('FirstName')" /> </label> <!--Merves--> <input type="text" id="firstName" name="firstName" value="{umbraco.library:GetCurrentMember()/@firstName}" /> </div>
by the way, when try to get @nodeName it works fine. ia there anybody has an idea?
thanks in advance
Hi Merves
As I posted in another post you should try and see what the content of the $member variable is :)
You do this by writing
<textarea><xsl:copy-of select="$member" /></textarea>What does the XML returned look like? Can you post it in here?
/Jan
thanks for your quick reply :)
i have tried and it gives;
<node id="1270" version="b3929657-8a4c-4d6e-a25d-317a3200691c" parentID="-1" level="1" writerID="0" nodeType="1226" template="0" sortOrder="95" createDate="2012-12-09T11:55:45" updateDate="2012-12-09T11:55:45" nodeName="merve" urlName="merve" writerName="Admin" nodeTypeAlias="SiteMembers" path="-1,1270" loginName="merve" email="m"><firstName>Merve </firstName><lastName>mysurname</lastName><address>my address</address><city>kazablanka</city><phone>1234567</phone></node>
am i missing sth on the previous code?
by the way i have tried value={$member/@firstName}
it didnt worked as well
You should try $member/firstName
firstName is not an attribute, but it is a childnode of $member, the @ is used to get attributes (like loginName)
Peter
Thanks!!
one little @ costs me hours! :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to get Member profile info with GetCurrentMember()
Hi,
I have try to retrieve member info in my text box. (an ecommerce site, while ordering i want to get member info automatically)
and i have use fallowing code, but it returns noting,
<div class="informationFieldWrap firstName">
<label for="firstName">
<span class="required">*</span>
<xsl:value-of select="umbraco.library:GetDictionaryItem('FirstName')" />
</label>
<!--Merves-->
<input type="text" id="firstName" name="firstName" value="{umbraco.library:GetCurrentMember()/@firstName}" />
</div>
by the way, when try to get @nodeName it works fine. ia there anybody has an idea?
thanks in advance
Hi Merves
As I posted in another post you should try and see what the content of the $member variable is :)
You do this by writing
<textarea>
<xsl:copy-of select="$member" />
</textarea>
What does the XML returned look like? Can you post it in here?
/Jan
thanks for your quick reply :)
i have tried and it gives;
<node id="1270" version="b3929657-8a4c-4d6e-a25d-317a3200691c" parentID="-1" level="1" writerID="0" nodeType="1226" template="0" sortOrder="95" createDate="2012-12-09T11:55:45" updateDate="2012-12-09T11:55:45" nodeName="merve" urlName="merve" writerName="Admin" nodeTypeAlias="SiteMembers" path="-1,1270" loginName="merve" email="m"><firstName>Merve </firstName><lastName>mysurname</lastName><address>my address</address><city>kazablanka</city><phone>1234567</phone></node>
am i missing sth on the previous code?
by the way i have tried value={$member/@firstName}
it didnt worked as well
You should try $member/firstName
firstName is not an attribute, but it is a childnode of $member, the @ is used to get attributes (like loginName)
Peter
Thanks!!
one little @ costs me hours! :)
is working on a reply...