In my stage site I have a document type with a couple of content pickers. They are not mandatory fields.
When we use courier to transfer an instance of this document type from stage to production it appears to put something into the content picker fields in production.which does not exist in stage.
This is causing my macro code to fail (basically it see if there is content in the content picker, if so show a link else do not show the link) Sample of macro below.
Courier not transfering Content Pickers correctly
In my stage site I have a document type with a couple of content pickers. They are not mandatory fields.
When we use courier to transfer an instance of this document type from stage to production it appears to put something into the content picker fields in production.which does not exist in stage.
This is causing my macro code to fail (basically it see if there is content in the content picker, if so show a link else do not show the link) Sample of macro below.
<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:variable name="mediaId" select="$currentPage/data [@alias = 'prayerlistpage']" />
<xsl:if test="string(number($mediaId))!='NaN'">
<li class="inPage"><a href="{$currentPage/@urlName}/{umbraco.library:GetXmlNodeById($mediaId)/@urlName}.aspx">Pray</a></li>
</xsl:if>
</xsl:template>
is working on a reply...