zoukankan      html  css  js  c++  java
  • 总结:SharePoint Designer 2010 DVWP (2) DataFormWebPart 不同类型的Column对应的XSLT写法

    对于带连接的Title,打开查看Item的详细信息,即DispForm.aspx

    <a href="/Lists/Project Tasks/DispForm.aspx?ID={ ID}">

    <xsl:value-of select="@LinkTitle"/>

    </a>

    多行文本

                    方法一:

    <xsl:value-of select="@Description" disable-output-escaping="Yes"/>

                    方法二:

                                    如果内容显示Div等信息,可以用函数substring-beforesubstring-after进行处理.

    3   时间比较与格式化

    (number(ddwrt:FormatDateTime(ddwrt:FormatDate(string(@Created),1033,1),1033,'yyyyMMdd'))>=number(ddwrt:FormatDateTime(ddwrt:FormatDate(string($StartDate),1033,1),1033,'yyyyMMdd'))) and (number(ddwrt:FormatDateTime(ddwrt:FormatDate(string(@Created),1033,1),1033,'yyyyMMdd')) <= number(ddwrt:FormatDateTime(ddwrt:FormatDate(string($EndDate),1033,1),1033,'yyyyMMdd')))

     

    连接

                    <a>

                                    <xsl:attribute name="href">

                                                    <xsl:value-of select="@Project"/>

                                    </xsl:attribute>

                                    <xsl:value-of select="@Project" />

                    </a>

     

    5 Attachment

    <td>

     <xsl:element name="SharePoint:AttachmentsField">

          <xsl:attribute name="runat">server</xsl:attribute>

          <xsl:attribute name="FieldName">Attachments</xsl:attribute>

          <xsl:attribute name="ControlMode">Display</xsl:attribute>

          <xsl:attribute name="Visible">true</xsl:attribute>

          <xsl:attribute name="ItemId">

              <xsl:value-of select="@ID"/>

          </xsl:attribute>

     </xsl:element>

    </td>

  • 相关阅读:
    fzu 2138
    hdu 1598 暴力+并查集
    poj 1734 floyd求最小环,可得到环上的每个点
    floyd求最小环 模板
    fzu 2087并查集的运用求最小生成树的等效边
    hdu 2586 lca在线算法(朴素算法)
    CF 602 D. Lipshitz Sequence 数学 + 单调栈 + 优化
    Problem 2238 Daxia & Wzc's problem 1627 瞬间移动
    D. Tavas and Malekas DFS模拟 + kmp + hash || kmp + hash
    K-th Number 线段树的区间第K大
  • 原文地址:https://www.cnblogs.com/LeimOO/p/1938898.html
Copyright © 2011-2022 走看看