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>

  • 相关阅读:
    今日总结
    今日总结
    今日总结
    k8s controller
    深入k8s:Informer使用及其源码分析
    理解 K8S 的设计精髓之 List-Watch机制和Informer模块
    Unix domain socket 简介
    Linux网络编程——端口复用(多个套接字绑定同一个端口)
    DPVS Tutorial
    dpvs route RTF_KNI
  • 原文地址:https://www.cnblogs.com/hqbird/p/5707289.html
Copyright © 2011-2022 走看看