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
I've created a xslt email template and have got this working well. I need to pass a field called "pageTitle" from the page the form is on, through to the xslt email template.
I've tried added a parameter to the Contour macro in the page template
<umbraco:Macro FormGuid="[#formPicker]" pageTitle="[#pageTitle]" Alias="umbracoContour.RenderForm" runat="server"></umbraco:Macro>
and then using this in the xslt template:
<xsl:param name="pageTitle" />
for your <xsl:value-of select="$pageTitle"/>. Now we h......
Comment author was deleted
have you tried just using $currentPage/ ... does that do anything?
Thanks Tim,
In the end we had to get a couple of fields from the node of a content picker on the page so ended up with:
<xsl:variable name="recursiveValue" select="$currentPage/ancestor-or-self::*[normalize-space(contactWidget)][1]/contactWidget" />
<xsl:variable name="node" select="umbraco.library:GetXmlNodeById($recursiveValue)" />
and then in the template we used
<xsl:value-of select="$node/quoteOpeningHours"/>
I hadn't done any XSLT for so long, Razor makes this soooo easy !!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Pass page data to a Contour xslt email template
I've created a xslt email template and have got this working well. I need to pass a field called "pageTitle" from the page the form is on, through to the xslt email template.
I've tried added a parameter to the Contour macro in the page template
and then using this in the xslt template:
Comment author was deleted
have you tried just using $currentPage/ ... does that do anything?
Thanks Tim,
In the end we had to get a couple of fields from the node of a content picker on the page so ended up with:
and then in the template we used
I hadn't done any XSLT for so long, Razor makes this soooo easy !!
is working on a reply...