Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris 4 posts 24 karma points
    Mar 03, 2011 @ 05:07
    Chris
    0

    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>

     

Please Sign in or register to post replies

Write your reply to:

Draft