zoukankan      html  css  js  c++  java
  • item style edit in sharepoint 2013


    标题头添加属性:(如果需要使用ddwrt)
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime">

    <xsl:template name="MyCustomStyle" match="Row[@Style='MyCustomStyle']" mode="itemstyle">
    <xsl:variable name="SafeLinkUrl">
    <xsl:call-template name="OuterTemplate.GetSafeLink">
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="DisplayTitle">
    <xsl:call-template name="OuterTemplate.GetTitle">
    <xsl:with-param name="Title" select="@Title"/>
    <xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
    </xsl:call-template>
    </xsl:variable>
    <div class="item link-item">
    <xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
    <a href="{$SafeLinkUrl}" title="{$DisplayTitle}">
    <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:choose>
    <xsl:when test="string-length($DisplayTitle) &gt; 10">
    <xsl:value-of select="substring($DisplayTitle,1,10)"/>...
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$DisplayTitle"/>
    </xsl:otherwise>
    </xsl:choose>
    </a>
    <xsl:if test="ddwrt:IfNew(string(@Created))">
    <img src="/_layouts/15/2052/images/new.gif" alt="New" border="0"/>
    </xsl:if>
    </div>
    </xsl:template>

  • 相关阅读:
    百度PaddlePaddle入门-14(多个CPU加速训练)
    Quantum Hierarchical State Machine (量子层级状态机)
    百度PaddlePaddle入门-13(网络优化)
    MachineLearning入门-9(数据准备)
    百度PaddlePaddle入门-12(损失函数)
    MachineLearning入门-8(数据可视化)
    百度PaddlePaddle入门-11(网络结构)
    页面生命周期
    JS控制开灯关灯
    JavaScript基础知识
  • 原文地址:https://www.cnblogs.com/hqbird/p/5707289.html
Copyright © 2011-2022 走看看