0

enter image description hereI have a person or Group field called ContactName but I can't get it to display "Name"(FirstName and LastName).

The Group column and modified columns works perfectly but not the person or group field. I'm sure i'm missing something. Is my OuterTemplate correct?

<xsl:variable name="ContactName">
           <xsl:call-template name="OuterTemplate.GetTitle">
       <xsl:value-of select="@Contact_x0020_Name.title"></xsl:value-of>
       </xsl:call-template>

       </xsl:variable>

     <xsl:variable name="modified">
     <xsl:value-of select="ddwrt:FormatDate(string(@Modified), 3081, 3)" />      

     </xsl:variable>

        <div class="item link-item">
        <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
        <a href="{$SafeLinkUrl}" title="{@LinkToolTip}">
          <xsl:if test="$ItemsHaveStreams = 'True'">
            <xsl:attribute name="onclick">
              <xsl:value-of select="@OnClickForWebRendering"/>
            </xsl:attribute>
          </xsl:if>
          <xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
            <xsl:attribute name="onclick">
              <xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
            </xsl:attribute>
          </xsl:if>
          <xsl:value-of select="$DisplayTitle"/>
        </a>

         <b>Last Modified @  <xsl:value-of select="$Group"/> Person @  <xsl:value-of select="$ContactName"/>
           Time @ <xsl:value-of select="$modified"/>

         </b>


      </div>
    </xsl:template>
  • Anyone have an idea what could.be wrong? – naijacoder Jun 6 '18 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.