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
Im trying to get the value of a text string from a page assigned at parent content picker of the current page.
<xsl:variable name="contactNode" select="$currentPage/parent::*[@isDoc]/listingContact" /> E-Mail<xsl:value-of select ="umbraco.library:GetXmlNodeById($contactNode)/employeeEmail" />
I've tried doing it like so. But it dosnt seem that the variable contains the node.
Hi Martin,
Try dumping out the values, see what's there?
<xsl:value-of select="$currentPage/parent::*[@isDoc]/listingContact" />
or
<xsl:value-of select="$contactNode" />
... and then ...
<xmp><xsl:copy-of select="umbraco.library:GetXmlNodeById($contactNode)" /></xmp>
Cheers, Lee.
ContactNode returns the ID and the GetXmlNodeById posts all the data of the wished node.Now im just strugeling with getting the employeeEmail
Martin,
Can you copy'n'paste your output from the last copy-of statement? From what i'm reading, I think
<xsl:value-of select="umbraco.library:GetXmlNodeById($contactNode)/employeeEmail" />
should be enough to get the field
Cheers,
/Dirk
Yeh i would so so too Dirk... But for some reason it dosnt work.I'm starting to get fustrated :)Been Googleing and using our.umbraco to find a solution. There must be a human error somewhere.
The code:
<xsl:variable name="contactNode" select="$currentPage/parent::*[@isDoc]/listingContact" />
Works
Does write the correct Id
Nothing...
so what is the output of
<xmp><xsl:value-ofselect="umbraco.library:GetXmlNodeById($contactNode)"/></xmp>
as Lee already pointed out?
It returned the Id: 1472
Fixed it... Deleted the "employEmail" and created it again... Guess there was some internal error somewhere.
FYI: recrated the property.
Out of curiousity, what was the property actually called, "employeeEmail" or "employEmail"?
It was employeeEmail
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Accessing parent Content Picker value
Im trying to get the value of a text string from a page assigned at parent content picker of the current page.
<xsl:variable name="contactNode" select="$currentPage/parent::*[@isDoc]/listingContact" />
E-Mail<xsl:value-of select ="umbraco.library:GetXmlNodeById($contactNode)/employeeEmail" />
I've tried doing it like so. But it dosnt seem that the variable contains the node.
Hi Martin,
Try dumping out the values, see what's there?
or
<xsl:value-of select="$contactNode" />
... and then ...
Cheers, Lee.
ContactNode returns the ID and the GetXmlNodeById posts all the data of the wished node.
Now im just strugeling with getting the employeeEmail
Martin,
Can you copy'n'paste your output from the last copy-of statement? From what i'm reading, I think
<xsl:value-of select="umbraco.library:GetXmlNodeById($contactNode)/employeeEmail" />
should be enough to get the field
Cheers,
/Dirk
Yeh i would so so too Dirk... But for some reason it dosnt work.
I'm starting to get fustrated :)
Been Googleing and using our.umbraco to find a solution. There must be a human error somewhere.
The code:
<xsl:variable name="contactNode" select="$currentPage/parent::*[@isDoc]/listingContact" />
Works
<xsl:value-of select="$contactNode" />
Does write the correct Id
<xsl:value-of select="umbraco.library:GetXmlNodeById($contactNode)/employeeEmail" />
Nothing...
Martin,
so what is the output of
<xmp><xsl:value-ofselect="umbraco.library:GetXmlNodeById($contactNode)"/></xmp>
as Lee already pointed out?
Cheers,
/Dirk
It returned the Id: 1472
Fixed it... Deleted the "employEmail" and created it again... Guess there was some internal error somewhere.
FYI: recrated the property.
Out of curiousity, what was the property actually called, "employeeEmail" or "employEmail"?
It was employeeEmail
is working on a reply...