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>

  • 相关阅读:
    彻底弄懂三段式状态机
    关于verilog的有符号数与无符号数的转换
    关于win10系统安装vivado 2017.1 .2 .3 报runtime error 问题解决办法 亲测有效
    python的列表拷贝
    PYTHON
    保存linux下当前目录下所有文件的相对路径
    Git 命令及使用经验
    讯飞SDK的使用
    DE4加DVI子板实现静态图片显示
    HDL代码风格建议(2)乘法器和DSP推断
  • 原文地址:https://www.cnblogs.com/hqbird/p/5707289.html
Copyright © 2011-2022 走看看