After upgrading to 4.5.2 im having some problems upgrading to new xslt schema. The converter by Tommy Poulsen has helped me a lot but im stuck on the following:
Old schema: <xsl:value-of select="umbraco.library:GetMember($mId)/data [@alias = 'memberAvatar']"/>
New schema: <xsl:value-of select="umbraco.library:GetMember($mId)/memberAvatar"/>
Old one works in 4.0.x but new one wont work in 4.5.x.
umbraco.library:GetMember($mId) successfully spits out all member properties but i cant retrieve single properties.
don't know directly the answer to that, but here is a way that will probably lead to the solution. Can you please add the following to your xslt and have a look at the output:
Thnx for the reply. Xml output seemed ok to me, but after fiddeling with the problem for a while longer I found a solution. Posting it here for future reference:
My original code that didnt work: <xsl:value-of select="umbraco.library:GetMember($mId)/memberAvatar"/>
Working code: <xsl:value-of select="umbraco.library:GetMember($mId)/*/memberAvatar"/>
Get member property problem
After upgrading to 4.5.2 im having some problems upgrading to new xslt schema. The converter by Tommy Poulsen has helped me a lot but im stuck on the following:
Old schema:
<xsl:value-of select="umbraco.library:GetMember($mId)/data [@alias = 'memberAvatar']"/>
New schema:
<xsl:value-of select="umbraco.library:GetMember($mId)/memberAvatar"/>
Old one works in 4.0.x but new one wont work in 4.5.x.
umbraco.library:GetMember($mId) successfully spits out all member properties but i cant retrieve single properties.
Hi Ernst,
don't know directly the answer to that, but here is a way that will probably lead to the solution. Can you please add the following to your xslt and have a look at the output:
</textarea>
That should give you an idea of the xml that gets returned, which should allow you to amend your xpath expression accordingly.
Sascha
Hi Sascha,
Thnx for the reply. Xml output seemed ok to me, but after fiddeling with the problem for a while longer I found a solution. Posting it here for future reference:
My original code that didnt work:
<xsl:value-of select="umbraco.library:GetMember($mId)/memberAvatar"/>
Working code:
<xsl:value-of select="umbraco.library:GetMember($mId)/*/memberAvatar"/>
is working on a reply...