XSLT in SharePoint

Hi Techies,
I was modifying SharePoint 2010 Blog Posts look and feel with the help of blog.xsl which is located under
LAYOUTS.  I was able to fetch data from default columns of POST list of Blog template site. But I got stuck when i was trying to fetch data from custom column which was added by me.
Anybody have any idea or let me know where i am going wrong.

http://blogs.technet.com/b/sharepointdevelopersupport/archive/2013/04/09/how-to-add-a-custom-field-to-blog-posts-in-sharepoint-2013.aspx
http://blog.henryong.com/2011/10/28/adding-sharepoint-social-rating-stars-to-the-homepage-of-sharepoint-blog-sites/
Please check the above articles
If u want to access column directly,then open the blog.xsl file which is located in layouts folder.
and paste the below line
<xsl:value-of select="@Body" disable-output-escaping="yes"/>
Here @body is the name of ur new column.
If u are using CQWP,in that case add the new column in CQWP properties like
<property name="DataMappings" type="string">LinkUrl:{94f89715-e097-4e8b-ba79-ea02aa8b7adb},FileRef;</property>
<property name="DataMappingViewFields" type="string">{94f89715-e097-4e8b-ba79-ea02aa8b7adb},Lookup;</property>

Similar Messages

  • No XSLT in SharePoint 2013-what About CQWP?

    In SP 2010, we have 2 XSLT templates added to the ItemStyle.xls file which are used extensively with our Content Query Web parts. As I understand it, XSLT is going away in favor of something called Display Templates.
    We will be converting to SP 2013 later this year, so what I need to know is how extensive is the work to get from the ItemStyle templates to Display Templates with the CQ Web part?

    Elmo,
    CQWP still available in 2013, uses XSLT still for design. Display Templates (or javascript templates) are being used by the new Content Search web part (CSWP) which is used to retrieve indexed search results.
    Thanks, Ransher Singh Click "Vote As Helpful"! if you think that post is helpful in responding your question click "Mark As Answer, if you think that this is your answer for your question.

  • How to add connection between two Web Part Data Views in sharepoint designer 2013

    Hi I have problems with connect two data view
    I have a SQL server database named Mini
    In Mini database I have two tables:  dbo.Table_A and dbo.Table_B
    Table_A design and Table_B design
    In the internet browser it look like this after I add the connections, the problem is there is no connection when I click at the Blue link id 2 and 3 ??? John's and Jes's Lastname did not show up, the links is dead. that's my problem
    The must strange is that, if I do the same below, in sharepoint 2010 designer it do well ?? so what in the .....
    Here is my code
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <%@ Page Language="C#" inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="SharePoint" namespace="Microsoft.SharePoint.WebControls" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register tagprefix="WebPartPages" namespace="Microsoft.SharePoint.WebPartPages" assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta name="ProgId" content="SharePoint.WebPartPage.Document" />
    <meta name="WebPartPageExpansion" content="full" />
    <meta http-equiv="X-UA-Compatible" content="IE=10" />
    <SharePoint:CssRegistration Name="default" runat="server"/>
    </head>
    <body>
    <form id="form1" runat="server">
    <table width="10%"><tr><td>
    <WebPartPages:SPWebPartManager runat="server" id="SPWebPartManager">
    <SPWebPartConnections>
    <WebPartPages:spwebpartconnection ID="g_1660BB6ADC7243088A1BB7F5C196203A" ConsumerConnectionPointID="DFWP Filter Consumer ID" ConsumerID="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" ProviderConnectionPointID="DFWP Row Provider ID" ProviderID="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad">
    <WebPartPages:sprowtoparameterstransformer ProviderFieldNames="@ID" ConsumerFieldNames="@ID" />
    </WebPartPages:spwebpartconnection>
    </SPWebPartConnections>
    </WebPartPages:SPWebPartManager>
    <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_A on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{B70A05BB-A849-423D-8E53-C7AD9CCC18AD}" id="g_b70a05bb_a849_423d_8e53_c7ad9ccc18ad" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_A_x0020_on_x0020_Mini2" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_A] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_curselkey" Location="Postback;Connection" DefaultValue="##init##"/>
    </ParameterBindings>
    <datafields>@ID,ID;@ForeName,ForeName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_curselkey">##init##</xsl:param>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">ForeName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="CurrentRowKey">
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    </xsl:variable>
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" >
    <xsl:with-param name="CurrentRowKey" select="$CurrentRowKey" />
    </xsl:call-template>
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <xsl:param name="CurrentRowKey" />
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <a target="_self">
    <xsl:attribute xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="href">
    <xsl:variable name="cursel">dvt_curselkey={
    <xsl:call-template name="dvt.gencurselkey">
    <xsl:with-param name="RowPath" select="." />
    </xsl:call-template>
    }</xsl:variable>
    <xsl:variable xmlns:xsl="http://www.w3.org/1999/XSL/Transform" name="fields">@ID=<xsl:value-of select="ddwrt:ConnEncode(string(@ID))" /></xsl:variable>
    <xsl:text>javascript:</xsl:text>
    <xsl:value-of select="ddwrt:GenFireConnection(concat('g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881*',$fields),string($cursel))"></xsl:value-of>
    </xsl:attribute>
    <xsl:attribute name="style">
    <xsl:if test="$CurrentRowKey = $dvt_curselkey">font-weight: bold;</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')" />
    </a></td><td class="ms-vb">
    <xsl:value-of select="@ForeName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    <xsl:template name="dvt.gencurselkey">
    <xsl:param name="RowPath" />
    <xsl:choose>
    <xsl:when test="$dvt_curselkey = '##init##' and position() = $dvt_firstrow">##init##</xsl:when>
    <xsl:otherwise><xsl:value-of select="ddwrt:ConnEncode(string($RowPath/@ID))" /></xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr><tr><td>
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="Table_B on Mini" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{2ABFC8F5-0EB3-4711-A5B0-7E7518F56881}" id="g_2abfc8f5_0eb3_4711_a5b0_7e7518f56881" pagesize="10">
    <DataSources>
    <asp:SqlDataSource id="Table_B_x0020_on_x0020_Mini1" runat="server" __designer:commandsync="true" ProviderName="System.Data.SqlClient" ConnectionString="Data Source=TestMSSQL;User ID=SQLADMIN;Password=079130;Initial Catalog=Mini;" SelectCommand="SELECT * FROM [Table_B] ORDER BY [ID] ASC "/>
    </DataSources>
    <ParameterBindings>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_nextpagedata" Location="Postback;Connection"/>
    </ParameterBindings>
    <datafields>@ID,ID;@LastName,LastName;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:param name="dvt_firstrow">1</xsl:param>
    <xsl:param name="dvt_nextpagedata" />
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">Table</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/NewDataSet/Row"/>
    <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
    <xsl:variable name="RowLimit" select="10" />
    <xsl:variable name="FirstRow" select="$dvt_firstrow" />
    <xsl:variable name="LastRow">
    <xsl:choose>
    <xsl:when test="($FirstRow + $RowLimit - 1) &gt; $dvt_RowCount"><xsl:value-of select="$dvt_RowCount" /></xsl:when>
    <xsl:otherwise><xsl:value-of select="$FirstRow + $RowLimit - 1" /></xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
    <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
    <xsl:choose>
    <xsl:when test="$dvt_IsEmpty">
    <xsl:call-template name="dvt_1.empty"/>
    </xsl:when>
    <xsl:otherwise>
    <table border="0" width="100%" cellpadding="2" cellspacing="0">
    <tr valign="top">
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <th class="ms-vh" width="1%" nowrap="nowrap"></th>
    </xsl:if>
    <th class="ms-vh" nowrap="nowrap">ID</th><th class="ms-vh" nowrap="nowrap">LastName</th></tr>
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows[position() &gt;= $FirstRow and position() &lt;= $LastRow]"/>
    <xsl:with-param name="FirstRow" select="1" />
    <xsl:with-param name="LastRow" select="$dvt_RowCount" />
    </xsl:call-template>
    </table>
    </xsl:otherwise>
    </xsl:choose>
    <xsl:call-template name="dvt_1.commandfooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="number(ddwrt:NameChanged('',-100))" />
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:for-each select="$Rows">
    <xsl:variable name="dvt_KeepItemsTogether" select="false()" />
    <xsl:variable name="dvt_HideGroupDetail" select="false()" />
    <xsl:if test="(position() &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether">
    <xsl:if test="not($dvt_HideGroupDetail)" ddwrt:cf_ignore="1">
    <xsl:call-template name="dvt_1.rowview" />
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
    <tr>
    <xsl:if test="position() mod 2 = 1">
    <xsl:attribute name="class">ms-alternating</xsl:attribute>
    </xsl:if>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <td class="ms-vb" width="1%" nowrap="nowrap">
    <span ddwrt:amkeyfield="" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(''))" ddwrt:ammode="view"></span>
    </td>
    </xsl:if>
    <td class="ms-vb">
    <xsl:value-of select="format-number(@ID, '#,##0.#;-#,##0.#')"/>
    </td><td class="ms-vb">
    <xsl:value-of select="@LastName" /></td></tr>
    </xsl:template>
    <xsl:template name="dvt_1.empty">
    <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
    <table border="0" width="100%">
    <tr>
    <td class="ms-vb">
    <xsl:value-of select="$dvt_ViewEmptyText"/>
    </td>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.commandfooter">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <table cellspacing="0" cellpadding="4" border="0" width="100%">
    <tr>
    <xsl:if test="$FirstRow &gt; 1 or $LastRow &lt; $dvt_RowCount">
    <xsl:call-template name="dvt_1.navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="RowLimit" select="$RowLimit" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    <xsl:with-param name="RealLastRow" select="$RealLastRow" />
    </xsl:call-template>
    </xsl:if>
    </tr>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.navigation">
    <xsl:param name="FirstRow" />
    <xsl:param name="LastRow" />
    <xsl:param name="RowLimit" />
    <xsl:param name="dvt_RowCount" />
    <xsl:param name="RealLastRow" />
    <xsl:variable name="PrevRow">
    <xsl:choose>
    <xsl:when test="$FirstRow - $RowLimit &lt; 1">1</xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$FirstRow - $RowLimit" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$LastRow &gt; $RealLastRow">
    <xsl:value-of select="$LastRow"></xsl:value-of>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RealLastRow"></xsl:value-of>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"></xsl:value-of>
    </xsl:variable>
    <td nowrap="nowrap" class="ms-paging" align="right">
    <xsl:if test="$dvt_firstrow &gt; 1" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_firstrow={1}')" />;</xsl:attribute>
    Start</a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$PrevRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/prev.gif" border="0" alt="Previous" />
    </a>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    </xsl:if>
    <xsl:value-of select="$FirstRow" />
    - <xsl:value-of select="$LastRowValue" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore="1">
    <a>
    <xsl:attribute name="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dvt_firstrow={',$NextRow,'}'))" />;</xsl:attribute>
    <img src="/_layouts/15/images/next.gif" border="0" alt="Next" />
    </a>
    </xsl:if>
    </td>
    </xsl:template>
    </xsl:stylesheet> </XSL>
    </WebPartPages:DataFormWebPart>
    </td></tr></table>
    </form>
    </body>
    </html>

    Hey Bale
    Yes I use sharepoint designer 2013, when I do the same in sharepoint designer 2010, it do well
    No to your question 2, 3 and 4
    See again my picture below her, when I open the internet browser
    in the database you have a table with forename and another table with last name,
    the link between this two table is the id, when I open it is ok, Bens lastname is
    James, Ben James.
    So when I try to click on the blue id number 2 beside John, Johns Last name
    should show up, but it did not, the link is dead. that's my problem the funny about this when I
    do the same procedure see above in sharepoint designer 2010, it do well ?
    Here is my first steps, when you have uploaded the first datasource, you need to save, place your courser
    behind the <asp:ScriptManager runat="server" id="ScriptManager"></asp:ScriptManager> x   PLACE COURSER HER
    THEN you can upload the next datasource, the sharepoint designer automatic generate the code for the grid.
    When you have the two grids inside the aspx file, place your courser behind the first
    <WebPartPages:DataFormWebPart X <---
    then the tab "option" show up and inside here you can add the connections between the two grids.

  • Sharepoint online multiline list colomn not rendering HTML out put

    Hi 
    I have list with multi line column with having multimedia options. my problem is i have created view and edited XSL  to format it. also i have added "escape out put =yes" for the column but no luck still column is rendering as HTML Tags witch
    is not rendering HTML formats in UI
    Following is my code for List view any help greatly appreciate.. 
    regards
    Radika
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master"    Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=16.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebPartPage.Document"
    meta:webpartpageexpansion="full"  %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities"
    Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI,
    Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral,
    PublicKeyToken=71e9bce111e9429c" %>
    <%@ Register Tagprefix="ApplicationPages" Namespace="Microsoft.SharePoint.ApplicationPages.WebControls" Assembly="Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListProperty Property="TitleOrFolder" runat="server"/> - 
    <SharePoint:ListProperty Property="CurrentViewTitle" runat="server"/></asp:Content>
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:RssLink runat="server"/>
    </asp:content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <SharePoint:ViewIcon Width="145" Height="54" runat="server"/></asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    <SharePoint:RecentChangesMenu runat="server" id="RecentChanges"/>
    <SharePoint:ModifySettingsLink runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId ="PlaceHolderBodyLeftBorder" runat="server">
    <div height="100%" class="ms-pagemargin"><img src="/_layouts/15/images/blank.gif?rev=37" width='6' height='1' alt="" data-accessibility-nocheck="true"/></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:XsltListViewWebPart runat="server" ViewFlag="" ViewSelectorFetchAsync="False" InplaceSearchEnabled="True" ServerRender="False" ClientRender="False"
    InitialAsyncDataFetch="False" WebId="00000000-0000-0000-0000-000000000000" IsClientRender="False" GhostedXslLink="main.xsl" ViewGuid="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" EnableOriginalValue="False"
    DisplayName="NewsDisplay" ViewContentTypeId="0x" ListName="{17179938-EFC8-4DFE-92E9-CDE296D46919}" ListId="17179938-efc8-4dfe-92e9-cde296d46919" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID=""
    ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" Title="CT_RSSFeeds" FrameType="Default" SuppressWebPartChrome="False"
    Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True"
    AllowHide="True" IsVisible="True" TitleUrl="/sites/EFLDEV/Lists/CT_RSSFeeds" DetailLink="/sites/EFLDEV/Lists/CT_RSSFeeds" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall=""
    MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="False" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_d63d68ed_17d1_4cc9_bcf6_20dfed0fb269"
    ExportMode="NonSensitiveData" __MarkupType="vsattributemarkup" __WebPartId="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" __AllowXSLTEditing="true" __designer:CustomXsl="Fldtypes_mswhTitle.xsl;fldtypes_Ratings.xsl"
    WebPart="true" Height="" Width=""><ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">     <xsl:output method="html" indent="no"/>     <xsl:decimal-format NaN=""/>  
      <xsl:param name="dvt_apos">&apos;</xsl:param>     <xsl:variable name="dvt_1_automode">0</xsl:variable>     <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
            <xsl:call-template name="dvt_1"/>     </xsl:template>     
    <xsl:template name="dvt_1" ddwrt:ghost="" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:ddwrt2="urn:frontpage:internal">      
      <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>      
         <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/page.css" type="text/css" media="screen" /> <link rel="stylesheet" href="/sites/EFLDEV/Utillity/ES/slider.css" type="text/css"
    media="screen" /> <script type="text/javascript" src="/sites/EFLDEV/Utillity/ES/jquery.easing.1.2.js"></script> <script src="/sites/EFLDEV/Utillity/ES/jquery.anythingslider.js" type="text/javascript"
    charset="utf-8"></script> <script type="text/javascript">         function formatText(index, panel) {           return index + &quot;&quot;;        
    }         $(function () {             $(&apos;.anythingSlider&apos;).anythingSlider({                 easing: &quot;easeInOutExpo&quot;,    
                autoPlay: true,                 delay: 3000,                 startStopped: false,                
    animationTime: 600,                 hashTags: true,                 buildNavigation: true,             pauseOnHover: true,        
    startText: &quot;Go&quot;,         stopText: &quot;Stop&quot;,     navigationFormatter: formatText             });             $(&quot;#slide-jump&quot;).click(function(){
                    $(&apos;.anythingSlider&apos;).anythingSlider(6);             });         });     </script> <div class="anythingSlider">
        <div class="wrapper">         <ul>         <xsl:call-template name="dvt_1.body">             <xsl:with-param name="Rows"
    select="$Rows" />             </xsl:call-template>         </ul>             </div>         </div>     </xsl:template>
        <xsl:template name="dvt_1.body">         <xsl:param name="Rows" />         <xsl:for-each select="$Rows">    
            <xsl:call-template name="dvt_1.rowview" />         </xsl:for-each>     </xsl:template>     
    <xsl:template name="dvt_1.rowview" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">         <li>         <div class="textSlide">
    <!-- display the item title and a link to the item --><h3><a href="/{@FileDirRef}/DispForm.aspx?ID={@ID}" title="{@ItemTitle}"><xsl:value-of select="@ItemTitle" /></a></h3> <!-- display the
    body of the item  -->    <div><xsl:value-of select="@ItemDescription" disable-output-escaping="yes" /></div>     </div>     </li></xsl:template> 
    </xsl:stylesheet></Xsl>
    <DataFields>
    </DataFields>
    <XmlDefinition>
    <View Name="{D63D68ED-17D1-4CC9-BCF6-20DFED0FB269}" Type="HTML" DisplayName="NewsDisplay" Url="/sites/EFLDEV/Lists/CT_RSSFeeds/NewsDisplay.aspx" Level="1" BaseViewID="1"
    ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=37" >
    <Query/>
    <ViewFields>
    <FieldRef Name="LinkTitle"/>
    <FieldRef Name="ChannelID"/>
    <FieldRef Name="Tag"/>
    <FieldRef Name="Created1"/>
    <FieldRef Name="ItemTitle"/>
    <FieldRef Name="ID"/>
    <FieldRef Name="ItemDescription"/>
    </ViewFields>
    <RowLimit Paged="TRUE">30</RowLimit>
    <Aggregations Value="Off"/>
    <JSLink>clienttemplates.js</JSLink>
    <XslLink Default="TRUE">main.xsl</XslLink>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageDescription" runat="server">
    <SharePoint:ListProperty CssClass="ms-listdescription" Property="Description" runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderCalendarNavigator" runat="server">
    <SharePoint:SPCalendarNavigator id="CalendarNavigatorId" runat="server"/>
      <ApplicationPages:CalendarAggregationPanel id="AggregationPanel" runat="server"/>
    </asp:Content>

    Hi,
    In SharePoint Online 2013, we can use jQuery to convert “&lt”  to “<” and  convert “&gt” to “>”.
    The following code for your reference:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $(".ms-rtestate-field").each(function(){
    var $this = $(this).find("p");
    if ($this.length>0) {
    $this.each(function(){
    $(this).html($(this).html().replace('&lt;', '<').replace('&gt;', '>'));
    </script>
    We can also use JSLink to customize the display view.
    http://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Sharepoint designer error

    Hello guys,
    Scenario
    I am using data view control drop down to display data in drop down from a column in sql server and then mapping it to sharepoint list column so that when user goes to create new item he gets the drop down in the form which is getting value from the sql server column...
    problem
    Whenever i click on data fields of drop down to change the data bindings and give the list column as the data field to save value to i get an error :
    Sharepoint designer cannot render XSLT in this data view .
    Failed setting processor stylesheet :0x80004005: a reference to variable or parameter 'Pos' cannot be resolved.The variable or parameter may not be defined,or it may not be in scope
    Does anybody know what problem is it...let me know if i need to give some more details.
    Thanks

    Hello The document was helpful but not very specificlly..i am posting the code now,the data fields are the fields which are there in my list...there is a pos parameter or variable which is causing the problem.
    <datafields>@Title,Title;@teacher_x0020_id,teacher id;@teacher_x0020_name,teacher name;@ID,ID;@ContentType,Content Type;@Modified,Modified;@Created,Created;@Author,Created By;@Editor,Modified By;@_UIVersionString,Version;@Attachments,Attachments;@File_x0020_Type,File Type;@FileLeafRef,Name (for use in forms);@FileDirRef,Path;@FSObjType,Item Type;@_HasCopyDestinations,Has Copy Destinations;@_CopySource,Copy Source;@ContentTypeId,Content Type ID;@_ModerationStatus,Approval Status;@_UIVersion,UI Version;@Created_x0020_Date,Created;@FileRef,URL Path;</datafields>
    <XSL>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">'</xsl:param>
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/">
    <xsl:call-template name="dvt_1"/>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <table border="0" width="100%">
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <tr>
    <td class="ms-toolbar" nowrap="">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap=""><IMG SRC="/_layouts/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="">
    <SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton1"/>
    </td>
    <td class="ms-separator"> </td>
    <td class="ms-toolbar" nowrap="" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton1"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-toolbar" nowrap="">
    <SharePoint:FormToolBar runat="server" ControlMode="New"/>
    </td>
    </tr>
    <xsl:call-template name="dvt_1.rowedit">
    <xsl:with-param name="Pos" select="concat('_', position())" />
    </xsl:call-template>
    <tr>
    <td class="ms-toolbar" nowrap="">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap=""><IMG SRC="/_layouts/images/blank.gif" width="1" height="18"/>
    <xsl:text xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="yes" disable-output-escaping="yes">&amp;nbsp;</xsl:text>
    &#160;&#160; <SharePoint:DVDropDownList runat="server" id="ff4{$Pos}" selectedvalue="{@teacher_x0020_id}" __designer:bind="{ddwrt:DataBind('i',concat('ff4',$Pos),'SelectedValue','SelectedIndexChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@teacher_x0020_id')}" datasourceid="" datatextfield="" datavaluefield="" /></td>
    <td class="ms-toolbar" nowrap="">
    <SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2"/>
    </td>
    <td class="ms-separator"> </td>
    <td class="ms-toolbar" nowrap="" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="New" id="gobackbutton2"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </xsl:template>
    <xsl:template name="dvt_1.rowedit">
    <xsl:param name="Pos" />
    <tr>
    <td>
    <table border="0" cellspacing="0" width="100%">
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Title<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="Title" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="New"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>teacher id</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="teacher_x0020_id" __designer:bind="{ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@teacher_x0020_id')}"/>
    <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="teacher_x0020_id" ControlMode="New"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>teacher name</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="New" FieldName="teacher_x0020_name" __designer:bind="{ddwrt:DataBind('i',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@teacher_x0020_name')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="teacher_x0020_name" ControlMode="New"/>
    </td>
    </tr>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <tr>
    <td colspan="99" class="ms-vb">
    <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet> </XSL>

  • Hide column header in a SharePoint list web part view ?

     Hi ALl,
    I have a links list in SharePoint 2010 and created a custom standard view to show links on home page.
    I want to hide header column for that particular created list web part view.I have used following css but it's hide all list
    and libraries header column.
    .ms-viewheadertr
      display: none;
    I want to hide specific list web part view column hide.
    Following is a snap in this i want to hide URL column in this view.
    Thanks,
    Balaji More

    You can add the following to an .xsl file and link to it in the "Miscellaneous" options when you edit the web part. By doing it this way, you can reuse the same style sheet over and over.
    This xsl basically overrides a couple of templates located in the "vwstyles.xsl" file, and removes the lines that add the header.
    (This code works in production, but I may not have replicated it properly in this forum, so please test first.)
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal"
    xmlns:o="urn:schemas-microsoft-com:office:office">
    <xsl:include href="/_layouts/xsl/main.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:template match="View" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
    </xsl:template>
    <!-- Boxed and Boxed No Labels -->
    <!-- Issues Boxed and Boxed No Labels -->
    <xsl:template match="View[ViewStyle=/@ID='12' or ViewStyle=/@ID='13' or ViewStyle=/@ID='18' or ViewStyle=/@ID='19']" mode="full">
    <xsl:apply-templates select="." mode="RenderView" />
    </xsl:template>
    </xsl:stylesheet>
    DH

  • Using xsl stylesheet with List View Web Part to display custom text

    Hi 
    i have an xsl stylesheet with sharepoint listview webpart. The list view shows some items based on a filter. I want to display custom text such as "No Items" when there are zero items in the list view using the xsl stylesheet. How do i achieve
    this. I have spent hours searching but couldnt find the exact answer. Please help me out. I am a light user not a hard core developer so I dont use Visual Studio. Thanks in advance

    Hi 
    I have customised the list view webpart using a custom xsl file by including it in the xsl link of the list view webpart. So i think i need to include the condition in the xsl file itself else it wont work. Since the list view webpart isnt using the default
    xsl. Please let me kknow if you have any idea about including a condition in xsl to check if there are not items in view. 
    The code of the xsl is included below.
    <!--
    This section is the set up and can be used at the top of any external XSLT stylesheet file
    -->
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <table>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview"></xsl:call-template> 
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template name="dvt_1.rowview">
        <tr>
      <td><img height="78" width="60"><xsl:attribute name="src"><xsl:value-of select="@Photo"/></xsl:attribute></img></td>
        <td>
        <table style="margin-left:10px;">
        <tr><td><xsl:value-of select="@FullName"/></td></tr>
        <tr><td><xsl:value-of select="@DOBinWords"/></td></tr>
        </table>
        </td>
      </tr>
    </xsl:template>
    </xsl:stylesheet>

  • Custom edit form for my Wiki Page library with only "Page Name" field included

    I want to create a new custom edit form for my Wiki page library, and to only allow users to edit the Page name inside the edit form. now i created a new Edit form using SharePoint Designer , and i select the Enterprisewiki content type for it , which generates
    the following markup :-
    <%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=15.0.0.0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:webpartpageexpansion="full" meta:progid="SharePoint.WebPartPage.Document" %>
    <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ListFormPageTitle runat="server"/>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="server">
    <span class="die">
    <SharePoint:ListProperty Property="LinkTitle" runat="server" id="ID_LinkTitle"/>
    </span>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server">
    <img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" />
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    <div style="padding-left:5px">
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    <table class="ms-core-tableNoSpace" id="onetIDListForm">
    <tr>
    <td>
    <WebPartPages:WebPartZone runat="server" FrameType="None" ID="Main" Title="loc:Main"><ZoneTemplate>
    <WebPartPages:DataFormWebPart runat="server" EnableOriginalValue="False" DisplayName="Customer Service KB" ViewFlag="1048584" ViewContentTypeId="" Default="FALSE" ListUrl="" ListDisplayName="" ListName="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" ListId="6a6ece84-4d39-48e2-bd6a-c20b2ac6355b" PageType="PAGE_EDITFORM" PageSize="-1" UseSQLDataSourcePaging="True" DataSourceID="" ShowWithSampleData="False" AsyncRefresh="False" ManualRefresh="False" AutoRefresh="False" AutoRefreshInterval="60" NoDefaultStyle="TRUE" InitialAsyncDataFetch="False" Title="Customer Service KB" FrameType="None" SuppressWebPartChrome="False" Description="" IsIncluded="True" PartOrder="2" FrameState="Normal" AllowRemove="True" AllowZoneChange="True" AllowMinimize="True" AllowConnect="True" AllowEdit="True" AllowHide="True" IsVisible="True" DetailLink="" HelpLink="" HelpMode="Modeless" Dir="Default" PartImageSmall="" MissingAssembly="Cannot import this Web Part." PartImageLarge="" IsIncludedFilter="" ExportControlledProperties="True" ConnectionID="00000000-0000-0000-0000-000000000000" ID="g_f1c88e12_e91d_4300_91f2_62f0bd7825fb" ChromeType="None" ExportMode="All" __MarkupType="vsattributemarkup" __WebPartId="{F1C88E12-E91D-4300-91F2-62F0BD7825FB}" __AllowXSLTEditing="true" WebPart="true" Height="" Width=""><DataSources>
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" SelectCommand="&lt;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ContentType&quot;/&gt;&lt;Value Type=&quot;Text&quot;&gt;Enterprise Wiki Page&lt;/Value&gt;&lt;/Eq&gt;&lt;/Where&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat="True"><SelectParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKey="ListItemId" PropertyName="ParameterValues" DefaultValue="0" Name="ListItemId"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="weburl" PropertyName="ParameterValues" DefaultValue="http://sharepointdev:12341/sites/wiki1" Name="weburl"></WebPartPages:DataFormParameter><WebPartPages:DataFormParameter ParameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}" Name="ListID"></WebPartPages:DataFormParameter>
    </DeleteParameters>
    </SharePoint:SPDataSource>
    </DataSources>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <xsl:decimal-format NaN=""/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:param name="ManualRefresh"></xsl:param>
    <xsl:variable name="dvt_1_automode">0</xsl:variable>
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
    <xsl:choose>
    <xsl:when test="($ManualRefresh = 'True')">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td valign="top">
    <xsl:call-template name="dvt_1"/>
    </td>
    <td width="1%" class="ms-vb" valign="top">
    <img src="/_layouts/15/images/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt:GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/>
    </td>
    </tr>
    </table>
    </xsl:when>
    <xsl:otherwise>
    <xsl:call-template name="dvt_1"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dvt_1">
    <xsl:variable name="dvt_StyleName">ListForm</xsl:variable>
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
    <div>
    <span id="part1">
    <table border="0" width="100%">
    <xsl:call-template name="dvt_1.body">
    <xsl:with-param name="Rows" select="$Rows"/>
    </xsl:call-template>
    </table>
    </span>
    <SharePoint:AttachmentUpload runat="server" ControlMode="Edit"/>
    <SharePoint:ItemHiddenVersion runat="server" ControlMode="Edit"/>
    </div>
    </xsl:template>
    <xsl:template name="dvt_1.body">
    <xsl:param name="Rows"/>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton1"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton1"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:FormToolBar runat="server" ControlMode="Edit"/>
    <SharePoint:ItemValidationFailedMessage runat="server" ControlMode="Edit"/>
    </td>
    </tr>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowedit"/>
    </xsl:for-each>
    <tr>
    <td class="ms-toolbar" nowrap="nowrap">
    <table>
    <tr>
    <td class="ms-descriptiontext" nowrap="nowrap">
    <SharePoint:CreatedModifiedInfo ControlMode="Edit" runat="server"/>
    </td>
    <td width="99%" class="ms-toolbar" nowrap="nowrap"><IMG SRC="/_layouts/15/images/blank.gif" width="1" height="18"/></td>
    <td class="ms-toolbar" nowrap="nowrap">
    <SharePoint:SaveButton runat="server" ControlMode="Edit" id="savebutton2"/>
    </td>
    <td class="ms-separator">&#160;</td>
    <td class="ms-toolbar" nowrap="nowrap" align="right">
    <SharePoint:GoBackButton runat="server" ControlMode="Edit" id="gobackbutton2"/>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </xsl:template>
    <xsl:template name="dvt_1.rowedit">
    <xsl:param name="Pos" select="position()"/>
    <tr>
    <td>
    <table border="0" cellspacing="0" width="100%">
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Title (Display In Search)</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Title" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Title')}"/>
    <SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="Title" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Standard<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="Edit" FieldName="Standard" __designer:bind="{ddwrt:DataBind('u',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Standard')}"/>
    <SharePoint:FieldDescription runat="server" id="ff2description{$Pos}" FieldName="Standard" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Document Type<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff3{$Pos}" ControlMode="Edit" FieldName="Document_x0020_Type" __designer:bind="{ddwrt:DataBind('u',concat('ff3',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Document_x0020_Type')}"/>
    <SharePoint:FieldDescription runat="server" id="ff3description{$Pos}" FieldName="Document_x0020_Type" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Departments<span class="ms-formvalidation"> *</span>
    </nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff4{$Pos}" ControlMode="Edit" FieldName="Departments" __designer:bind="{ddwrt:DataBind('u',concat('ff4',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Departments')}"/>
    <SharePoint:FieldDescription runat="server" id="ff4description{$Pos}" FieldName="Departments" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Hide physical URLs from search</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff5{$Pos}" ControlMode="Edit" FieldName="PublishingIsFurlPage" __designer:bind="{ddwrt:DataBind('u',concat('ff5',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingIsFurlPage')}"/>
    <SharePoint:FieldDescription runat="server" id="ff5description{$Pos}" FieldName="PublishingIsFurlPage" ControlMode="Edit"/>
    </td>
    </tr>
    <tr>
    <td width="190px" valign="top" class="ms-formlabel">
    <H3 class="ms-standardheader">
    <nobr>Page Content</nobr>
    </H3>
    </td>
    <td width="400px" valign="top" class="ms-formbody">
    <SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="Edit" FieldName="PublishingPageContent" __designer:bind="{ddwrt:DataBind('u',concat('ff6',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@PublishingPageContent')}"/>
    <SharePoint:FieldDescription runat="server" id="ff6description{$Pos}" FieldName="PublishingPageContent" ControlMode="Edit"/>
    </td>
    </tr>
    <tr id="idAttachmentsRow">
    <td nowrap="true" valign="top" class="ms-formlabel" width="20%">
    <SharePoint:FieldLabel ControlMode="Edit" FieldName="Attachments" runat="server"/>
    </td>
    <td valign="top" class="ms-formbody" width="80%">
    <SharePoint:FormField runat="server" id="AttachmentsField" ControlMode="Edit" FieldName="Attachments" __designer:bind="{ddwrt:DataBind('u','AttachmentsField','Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Attachments')}"/>
    <script>
    var elm = document.getElementById(&quot;idAttachmentsTable&quot;);
    if (elm == null || elm.rows.length == 0)
    document.getElementById(&quot;idAttachmentsRow&quot;).style.display=&apos;none&apos;;
    </script>
    </td>
    </tr>
    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
    <tr>
    <td colspan="99" class="ms-vb">
    <span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </td>
    </tr>
    </xsl:template>
    </xsl:stylesheet> </Xsl>
    <DataFields>
    </DataFields>
    <ParameterBindings>
    <ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0"/>
    <ParameterBinding Name="weburl" Location="None" DefaultValue="http://sharepointdev:12341/sites/wiki1"/>
    <ParameterBinding Name="ListID" Location="None" DefaultValue="{6A6ECE84-4D39-48E2-BD6A-C20B2AC6355B}"/>
    <ParameterBinding Name="dvt_apos" Location="Postback;Connection"/>
    <ParameterBinding Name="ManualRefresh" Location="WPProperty[ManualRefresh]"/>
    <ParameterBinding Name="UserID" Location="CAMLVariable" DefaultValue="CurrentUserName"/>
    <ParameterBinding Name="Today" Location="CAMLVariable" DefaultValue="CurrentDate"/>
    </ParameterBindings>
    </WebPartPages:DataFormWebPart>
    </ZoneTemplate></WebPartPages:WebPartZone>
    </td>
    </tr>
    </table>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server">
    <ContentTemplate>
    </div>
    </ContentTemplate>
    </SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server">
    <SharePoint:DelegateControl runat="server" ControlId="FormCustomRedirectControl" AllowMultipleControls="true"/>
    <SharePoint:UIVersionedContent UIVersion="4" runat="server"><ContentTemplate>
    <SharePoint:CssRegistration Name="forms.css" runat="server"/>
    </ContentTemplate></SharePoint:UIVersionedContent>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleLeftBorder" runat="server">
    <table cellpadding="0" height="100%" width="100%" cellspacing="0">
    <tr><td class="ms-areaseparatorleft"><img src="/_layouts/15/images/blank.gif?rev=23" width='1' height='1' alt="" /></td></tr>
    </table>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server">
    <script type="text/javascript" id="onetidPageTitleAreaFrameScript">
    if (document.getElementById("onetidPageTitleAreaFrame") != null)
    document.getElementById("onetidPageTitleAreaFrame").className="ms-areaseparator";
    </script>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server">
    <SharePoint:StyleBlock runat="server">
    .ms-bodyareaframe {
    padding: 8px;
    border: none;
    </SharePoint:StyleBlock>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyLeftBorder" runat="server">
    <div class='ms-areaseparatorleft'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderBodyRightMargin" runat="server">
    <div class='ms-areaseparatorright'><img src="/_layouts/15/images/blank.gif?rev=23" width='8' height='100%' alt="" /></div>
    </asp:Content>
    <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaSeparator" runat="server"/>
    so from the above  markup  the name field is not part of the edit form,, i think this is because the Name is part of the Document content type and not part of the enterprisewiki content type .. so is there a way to add the name field to the edit
    form ?.
    second question, the edit form will show all the content type fields such as ; standard, document type, department , title (display in search), etc   so what is the best way to remove these fields from the custom edit form ?

    Hello John,
    This can only be done by adding VBScript to the form. It would basically be:
    Sub Item_Open() 
    Item.GetInspector.SetCurrentFormPage "P.2"
    End Sub
    ... where "P.2" would be what you named the page you want to display first.

  • Interactive Rating Stars for XSLTListView Blog Home Page

    Hi All, using the OOTB blog site template, I'd like to modify the OOTB List View Web Part (using SharePoint Designer) on the home page of the blog site to also include interactive rating stars next to each entry's title. So far I've been able to get the
    stars to show up but I haven't been able to figure out how to make it clickable/interactive. Any ideas/suggestions? Thanks!http://www.henryong.com

    Hi Henry,
    Please follow the steps given below
    1. Create a custom blog.xsl file and dump the below code in the file. Upload the blog.xsl file to a style library.
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office" ddwrt:ghost="show_all">
    <xsl:include href="/_layouts/xsl/blog.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() &gt;= $FirstRow and position() &lt;= $LastRow)]"/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:template match="/" ddwrt:ghost="hide">
    <xsl:choose>
    <xsl:when test="$RenderCTXOnly='True'">
    <xsl:call-template name="CTXGeneration"/>
    </xsl:when>
    <xsl:when test="($ManualRefresh = 'True')">
    <xsl:call-template name="AjaxWrapper" />
    </xsl:when>
    <xsl:otherwise>
    <xsl:apply-templates mode="RootTemplate" select="$XmlDefinition"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="View_DefaultSummary_RootTemplate" mode="RootTemplate" match="View[@BaseViewID='0']" ddwrt:dvt_mode="root" ddwrt:ghost="hide">
    <xsl:apply-templates select="." mode="full" />
    </xsl:template>
    <xsl:template match="View[@BaseViewID='0' and List/@TemplateType='301']" mode="full" ddwrt:ghost="hide">
    <xsl:apply-templates select="." mode="RenderView" />
    <xsl:apply-templates mode="footer" select="." />
    </xsl:template>
    <xsl:template match="View" mode="RenderView" ddwrt:ghost="hide">
    <xsl:variable name="ViewStyleID">
    <xsl:value-of select="ViewStyle/@ID"/>
    </xsl:variable>
    <xsl:variable name="HasExtraColumn" select="$TabularView='1' and $MasterVersion=4 and ($ViewStyleID = '' or $ViewStyleID = '17')"/>
    <xsl:if test="Aggregations[not(@Value='Off')]/FieldRef">
    <tr>
    <xsl:if test="$HasExtraColumn">
    <td/>
    </xsl:if>
    <xsl:if test="$InlineEdit">
    <td width="1%"/>
    </xsl:if >
    <xsl:apply-templates mode="aggregate" select="ViewFields/FieldRef[not(@Explicit='TRUE')]">
    <xsl:with-param name="Rows" select="$AllRows"/>
    <xsl:with-param name="GroupLevel" select="0"/>
    </xsl:apply-templates>
    </tr>
    </xsl:if>
    <xsl:variable name="Fields" select="ViewFields/FieldRef[not(@Explicit='TRUE')]"/>
    <xsl:variable name="Groups" select="Query/GroupBy/FieldRef"/>
    <xsl:variable name="Collapse" select="Query/GroupBy[@Collapse='TRUE']"/>
    <xsl:variable name="GroupCount" select="count($Groups)"/>
    <xsl:for-each select="$AllRows">
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="$GroupCount &gt; 0">
    <xsl:call-template name="GroupTemplate">
    <xsl:with-param name="Groups" select="$Groups"/>
    <xsl:with-param name="Collapse" select="$Collapse"/>
    <xsl:with-param name="HasExtraColumn" select="$HasExtraColumn"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:if test="not(not($NoAJAX) and not($InlineEdit) and $Collapse and $GroupCount &gt; 0)">
    <xsl:apply-templates mode="Item" select=".">
    <xsl:with-param name="Fields" select="$Fields"/>
    <xsl:with-param name="Collapse" select="$Collapse"/>
    <xsl:with-param name="Position" select="position()"/>
    <xsl:with-param name="Last" select="last()"/>
    </xsl:apply-templates>
    </xsl:if>
    </xsl:for-each>
    <xsl:if test="$InlineEdit and not($IsDocLib) and $ListRight_AddListItems = '1'">
    <xsl:call-template name="rowinsert">
    <xsl:with-param name="Fields" select="$Fields"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template mode="Item" match="Row[../../@TemplateType='301' and (../../@BaseViewID='0' or ../../@BaseViewID='7' or ../../@BaseViewID='8' or ../../@BaseViewID='9')]" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:param name="Fields" select="."/>
    <xsl:param name="Collapse" select="."/>
    <xsl:param name="Position" select="1"/>
    <xsl:param name="Last" select="1"/>
    <xsl:variable name="ShowBody">
    <xsl:if test="../../@BaseViewID='0' or ../../@BaseViewID='7'">1</xsl:if>
    </xsl:variable>
    <xsl:variable name="ShowTopDate">
    <xsl:if test="../../@BaseViewID='0' or ../../@BaseViewID='7'">1</xsl:if>
    </xsl:variable>
    <xsl:variable name="ShowDrafts">
    <xsl:if test="../../@BaseViewID='7'">1</xsl:if>
    </xsl:variable>
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="$ShowDrafts=1 or $thisNode/@_ModerationStatus. = 0">
    <table>
    <tr class="ms-blogpostdatecol" valign="top">
    <td class= "ms-leftblogdate" style="width: 93px">
    <div id="PostDateTopBox{generate-id()}" class="ms-postcalendardateboxtop">
    </div>
    <xsl:if test="$MasterVersion = 4">
    <div id="PostDateBottomBox{generate-id()}" class="ms-postcalendardateboxbottom" style="overflow-x:hidden">
    <div>
    <xsl:value-of select="$thisNode/@PublishedDate.MonthDayOnly" disable-output-escaping="yes" />
    </div>
    </div>
    </xsl:if>
    <xsl:if test="$MasterVersion != 4">
    <div id="PostDateBottomBox" class="ms-postcalendardateboxbottom" style="overflow-x:hidden;font-size:0.8em">
    <div>
    <xsl:value-of select="$thisNode/@PublishedDate.MonthDayOnly" disable-output-escaping="yes" />
    </div>
    </div>
    </xsl:if>
    </td>
    <td class = "ms-rightblogpost">
    <table dir="None" cellspacing="0" cellpadding="0" width="100%" border="0">
    <tbody>
    <tr>
    <td class="ms-PostTitle">
    <a href="{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogpost_Folder}/Post.aspx?ID={$thisNode/@ID}">
    <xsl:apply-templates select="$Fields[@Name='Title']" mode="PrintField">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    <xsl:with-param name="Position" select="$Position"/>
    </xsl:apply-templates>
    </a>
    </td>
    <xsl:if test="../../@BaseViewID='7'">
    <xsl:if test="($thisNode/../@value.listpermission.EditListItems = '1' and (($thisNode/../@value.listpermission.ManageLists = '1') or ($XmlDefinition/List/@WriteSecurity = '2' and $thisNode/@Author.id = $Userid) or ($XmlDefinition/List/@WriteSecurity != '2')))">
    <td align="right" class="ms-blogedit">
    <a href="javascript:" onclick="javascript:ShowPopupDialog('{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogpost_Folder}/EditPost.aspx?ID={$thisNode/@ID}&amp;Source={$HttpVDir}%2Fdefault.aspx');">
    <xsl:value-of select="'Edit'" />
    </a>
    </td>
    </xsl:if>
    </xsl:if>
    </tr>
    </tbody>
    </table>
    <div class="ms-PostFooter">
    <xsl:for-each select="$Fields">
    <xsl:if test="@Name!='Title' and @Type!='Note' and not(@Name='PostCategory' and $thisNode/@PostCategory='')">
    <xsl:choose>
    <xsl:when test="@Name='Author'">
    <span class="ms-postfootercolor">
    <xsl:value-of select="'by '"/>
    </span>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="$thisNode/@Author.span" disable-output-escaping="yes" />
    </xsl:when>
    <xsl:when test="@Name='PublishedDate'">
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;&amp;nbsp;</xsl:text>
    <span class="ms-postfootercolor">
    <xsl:value-of select="'on'"/>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="$thisNode/@PublishedDate" />
    </span>
    </xsl:when>
    </xsl:choose>
    </xsl:if>
    </xsl:for-each>
    <div>
    <xsl:for-each select="$Fields">
    <xsl:if test="@Name='PostCategory' and not ($thisNode/@PostCategory='')">
    <xsl:value-of select="'Category'" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">:&amp;nbsp;</xsl:text>
    <xsl:apply-templates select="$Fields[@Name='CategoryWithLink']" mode="Computed_body">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    </xsl:apply-templates>
    </xsl:if>
    </xsl:for-each>
    </div>
    </div>
    <xsl:if test="$ShowBody=1">
    <div class="ms-PostBody">
    <div>
    <xsl:apply-templates select="$Fields[@Name='Body']" mode="PrintField">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    <xsl:with-param name="Position" select="$Position"/>
    </xsl:apply-templates>
    </div>
    </div>
    </xsl:if>
    <div class="ms-PostFooter">
    <xsl:for-each select="$Fields">
    <xsl:if test="@Name ='Permalink' or @Name ='EmailPostLink' or @Name ='NumCommentsWithLink'">
    <xsl:choose>
    <xsl:when test="@Name='Permalink' or @Name='EmailPostLink' or @Name='NumCommentsWithLink'">
    <xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    <xsl:with-param name="Position" select="$Position"/>
    </xsl:apply-templates>
    <xsl:if test="@Name='Permalink' or @Name='EmailPostLink'">
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;|&amp;nbsp;</xsl:text>
    </xsl:if>
    </xsl:when>
    <xsl:when test="$thisNode/@*[name()=current()/@Name]!=''">
    <xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    <xsl:with-param name="Position" select="$Position"/>
    </xsl:apply-templates>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;|&amp;nbsp;</xsl:text>
    </xsl:when>
    </xsl:choose>
    </xsl:if>
    </xsl:for-each>
    </div>
    <!--Start Blog Post Average Rating -->
    <div class="ms-PostFooter">
    <xsl:for-each select="$Fields">
    <xsl:if test="@Name ='AverageRating'">
    <xsl:choose>
    <xsl:when test="@Name='AverageRating'">
    <xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    <xsl:with-param name="Position" select="$Position"/>
    </xsl:apply-templates>
    </xsl:when>
    </xsl:choose>
    </xsl:if>
    </xsl:for-each>
    </div>
    <!--End Blog Post Average Rating -->
    </td>
    </tr>
    </table>
    </xsl:if>
    </xsl:template>
    <xsl:template name="FieldRef_Text_body.Title" ddwrt:dvt_mode="body" match ="FieldRef[@Name='Title']" mode="Text_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <xsl:choose>
    <xsl:when test="@AutoHyperLink='TRUE'">
    <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping ="yes"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$thisNode/@*[name()=current()/@Name]"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="FieldRef_Note_body.Body" ddwrt:dvt_mode="body" match="FieldRef[@Name='Body']" mode="Note_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <div dir="{@Direction}" class="ms-rtestate-field">
    <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes"/>
    </div>
    </xsl:template>
    <xsl:template name="FieldRef_Blog_Permalink_Computed_Body.Permalink" match="FieldRef[(@ID='a194bd80-24e6-e71b-b235-3a283b9f1e71') and @Name='Permalink']" ddwrt:dvt_mode="body" mode="Computed_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <span style="vertical-align:middle">
    <span style="height:16px;width:16px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust">
    <a href="{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogpost_Folder}/Post.aspx?ID={$thisNode/@ID}" style="height:16px;width:16px;display:inline-block;" >
    <img src="/_layouts/images/fgimg.png" alt="{$thisNode/../@resource.wss.posts_permlink_alt}" style="left:-0px !important;top:-412px !important;position:absolute;" title="{$thisNode/../@resource.wss.posts_permlink_alt}" class="imglink" longDesc="{$thisNode/../@resource.wss.posts_permlink_alt}" />
    </a>
    </span>
    </span>
    </xsl:template>
    <xsl:template name="FieldRef_Blog_EmailPostLink_Computed_Body.EmailPostLink" match="FieldRef[(@ID='1c216b4a-13a6-cd5c-b37b-3776b29ff92e') and @Name='EmailPostLink']" ddwrt:dvt_mode="body" mode="Computed_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <span style="vertical-align:middle">
    <span style="height:16px;width:16px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust">
    <a href="javascript:navigateMailToLink('{$HttpVDir}%2F{$thisNode/../@resource.wss.lists_Folder}%2F{$thisNode/../@resource.wss.blogpost_Folder}%2FPost.aspx?ID%3D{$thisNode/@ID}')" style="height:16px;width:16px;display:inline-block;" >
    <img src="/_layouts/images/fgimg.png" alt="{$thisNode/../@resource.wss.posts_emailpostlink_alt}" style="left:-0px !important;top:-267px !important;position:absolute;" title="{$thisNode/../@resource.wss.posts_emailpostlink_alt}" class="imglink" longDesc ="{$thisNode/../@resource.wss.posts_emailpostlink_alt}" />
    </a>
    </span>
    </span>
    </xsl:template>
    <xsl:template name="FieldRef_Blog_NumCommentsWithLink_Computed_Body.NumCommentsWithLink" match="FieldRef[(@ID='65746b4a-13a6-a72c-b815-3a96b29f1f9e') and @Name='NumCommentsWithLink']" ddwrt:dvt_mode="body" mode="Computed_body" ddwrt:ghost="hide">
    <xsl:param name="thisNode" select="."/>
    <span style="vertical-align:middle">
    <span style="height:16px;width:16px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust">
    <a href="{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogpost_Folder}/Post.aspx?ID={$thisNode/@ID}" style="height:16px;width:16px;display:inline-block;" >
    <img src="/_layouts/images/fgimg.png" alt="{$thisNode/../@resource.wss.posts_numcommentswithlink_alt}" style="left:-0px !important;top:-396px !important;position:absolute;" title="{$thisNode/../@resource.wss.posts_numcommentswithlink_alt}" class="imglink" longDesc="{$thisNode/../@resource.wss.posts_numcommentswithlink_alt}" />
    </a>
    </span>
    </span>
    <span>
    <a href="{$HttpVDir}/{$thisNode/../@resource.wss.lists_Folder}/{$thisNode/../@resource.wss.blogpost_Folder}/Post.aspx?ID={$thisNode/@ID}">
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="$thisNode/@NumComments" />
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="'Comment(s)'"/>
    </a>
    </span>
    </xsl:template>
    <xsl:template match="View[List/@TemplateType='301' and (@BaseViewID='0' or @BaseViewID='8' or @BaseViewID='9')]" mode="footer" ddwrt:ghost="hide">
    <xsl:call-template name="pagingButtons" />
    <xsl:if test="List/@EnableSyndication=1">
    <div class="ms-blogrss" id="BlogRSSMain{generate-id()}">
    <span style="vertical-align:middle">
    <span style="height:16px;width:16px;position:relative;display:inline-block;overflow:hidden;" class="s4-clust">
    <a href="{$HttpVDir}/_layouts/listfeed.aspx?List={$List}" style="height:16px;width:16px;display:inline-block;" >
    <img src="/_layouts/images/fgimg.png" alt="{$Rows/@resource.wss.blog_rss_link}" style="left:-0px !important;top:-475px !important;position:absolute;" title="{$Rows/@resource.wss.blog_rss_link}" align="absmiddle" />
    </a>
    </span>
    </span>
    <a href="{$HttpVDir}/_layouts/listfeed.aspx?List={$List}">
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="'RSS Feed'"/>
    </a>
    </div>
    <script type="text/javascript">
    var divBlogRSSNav = document.getElementById(&quot;BlogRSSNav&quot;);
    var divBlogRSSMain = document.getElementById(&quot;BlogRSSMain&quot;);
    if (divBlogRSSNav != null &amp;&amp; divBlogRSSMain != null)
    divBlogRSSNav.innerHTML = divBlogRSSMain.innerHTML;
    divBlogRSSNav.className = &quot;ms-blogrssnav&quot;;
    divBlogRSSMain.removeNode(true);
    </script>
    </xsl:if>
    <xsl:if test="$EnableAlert">
    <div class="ms-blogrss" >
    <a href="{$HttpVDir}/_layouts/SubNew.aspx?List={$List}&amp;Source={$HttpVDir}%2Fdefault.aspx" longDesc="{$Rows/@resource.wss.ToolBarMenuItemAlertMe}">
    <img src="/_layouts/images/menualert.gif" alt="{$Rows/@resource.wss.ToolBarMenuItemAlertMe}" title="{$Rows/@resource.wss.ToolBarMenuItemAlertMe}" align="absmiddle" height="16px" width="16px"/>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:value-of select="'Alert Me'"/>
    </a>
    </div>
    </xsl:if>
    </xsl:template>
    <xsl:template name="pagingButtons" ddwrt:ghost="hide">
    <xsl:choose>
    <xsl:when test="$XmlDefinition/List/@TemplateType = 106 and $XmlDefinition/@RecurrenceRowset='TRUE'">
    <xsl:if test="$dvt_nextpagedata or $dvt_prevpagedata">
    <xsl:call-template name="CalendarExpandedRecurrenceFooter"/>
    </xsl:if>
    </xsl:when>
    <xsl:otherwise>
    <xsl:if test="$XmlDefinition/RowLimit[@Paged='TRUE']">
    <xsl:call-template name="CommandFooter">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    </xsl:call-template>
    </xsl:if>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="CommandFooter" ddwrt:ghost="hide">
    <xsl:param name="FirstRow" select="1"/>
    <xsl:param name="LastRow" select="1"/>
    <xsl:param name="dvt_RowCount" select="1"/>
    <xsl:if test="$FirstRow &gt; 1 or $dvt_nextpagedata">
    <xsl:call-template name="Navigation">
    <xsl:with-param name="FirstRow" select="$FirstRow" />
    <xsl:with-param name="LastRow" select="$LastRow" />
    <xsl:with-param name="dvt_RowCount" select="$dvt_RowCount" />
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template name="Navigation" ddwrt:ghost="hide">
    <xsl:param name="FirstRow" select="1"/>
    <xsl:param name="LastRow" select="1"/>
    <xsl:param name="dvt_RowCount" select="1"/>
    <xsl:variable name="LastRowValue">
    <xsl:choose>
    <xsl:when test="$EntityName = '' or $LastRow &lt; $RowTotalCount">
    <xsl:value-of select="$LastRow"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$RowTotalCount"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:variable name="NextRow">
    <xsl:value-of select="$LastRowValue + 1"/>
    </xsl:variable>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ms-bottompaging">
    <tr>
    <td class="ms-bottompagingline1">
    <img src="/_layouts/images/blank.gif" width="1" height="1" alt=""/>
    </td>
    </tr>
    <tr>
    <td class="ms-bottompagingline2">
    <img src="/_layouts/images/blank.gif" width="1" height="1" alt=""/>
    </td>
    </tr>
    <tr>
    <td class="ms-vb" id="bottomPagingCell{$WPQ}">
    <xsl:if test="not($GroupingRender)">
    <xsl:attribute name="align">center</xsl:attribute>
    </xsl:if>
    <table>
    <tr>
    <xsl:if test="$dvt_firstrow &gt; 1">
    <td>
    <a>
    <xsl:choose>
    <xsl:when test="$dvt_RowCount = 0 and not($NoAJAX)">
    <xsl:attribute name="onclick">
    javascript:RefreshPageTo(event, &quot;<xsl:value-of select="$PagePath"/>?<xsl:value-of select="$ShowWebPart"/>\u0026<xsl:value-of select='$FieldSortParam'/><xsl:value-of select='$SortQueryString'/>\u0026View=<xsl:value-of select="$View"/>&quot;);javascript:return false;
    </xsl:attribute>
    <xsl:attribute name="href">javascript:</xsl:attribute>
    <img src="/_layouts/{$LCID}/images/prev.gif" border="0" alt="{$Rows/@idRewind}" />
    <img src="/_layouts/{$LCID}/images/prev.gif" border="0" alt="{$Rows/@idRewind}" />
    </xsl:when>
    <xsl:otherwise>
    <xsl:variable name="RealRowLimit">
    <xsl:choose>
    <xsl:when test="$XmlDefinition/Query/GroupBy[@Collapse='TRUE']/@GroupLimit">
    <xsl:value-of select ="$XmlDefinition/Query/GroupBy[@Collapse='TRUE']/@GroupLimit"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select = "$XmlDefinition/RowLimit"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <xsl:choose>
    <xsl:when test="not($NoAJAX)">
    <xsl:attribute name="onclick">
    javascript:RefreshPageTo(event, &quot;<xsl:value-of select="$PagePath"/>?<xsl:value-of select="$dvt_prevpagedata"/><xsl:value-of select="$ShowWebPart"/>\u0026PageFirstRow=<xsl:value-of select="$FirstRow - $RealRowLimit"/>\u0026<xsl:value-of select='$FieldSortParam'/><xsl:value-of select='$SortQueryString'/>\u0026View=<xsl:value-of select="$View"/>&quot;);javascript:return false;
    </xsl:attribute>
    <xsl:attribute name="href">javascript:</xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
    <xsl:attribute name="href">
    javascript: <xsl:call-template name="GenFireServerEvent">
    <xsl:with-param name="param" select="concat('dvt_firstrow={',$FirstRow - $XmlDefinition/RowLimit,'};dvt_startposition={',$dvt_prevpagedata,'}')"/>
    </xsl:call-template>
    </xsl:attribute>
    </xsl:otherwise>
    </xsl:choose>
    <img src="/_layouts/{$LCID}/images/prev.gif" border="0" alt="{$Rows/@idPrevious}" />
    </xsl:otherwise>
    </xsl:choose>
    </a>
    </td>
    </xsl:if>
    <xsl:if test="$FirstRow &lt;= $LastRowValue">
    <td class="ms-paging">
    <xsl:value-of select="$FirstRow" /> - <xsl:value-of select="$LastRowValue" />
    </td>
    </xsl:if>
    <xsl:if test="$LastRowValue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0">
    <td>
    <a>
    <xsl:choose>
    <xsl:when test="not($NoAJAX)">
    <xsl:attribute name="onclick">
    javascript:RefreshPageTo(event, &quot;<xsl:value-of select="$PagePath"/>?<xsl:value-of select="$dvt_nextpagedata"/><xsl:value-of select="$ShowWebPart"/>\u0026PageFirstRow=<xsl:value-of select="$NextRow"/>\u0026<xsl:value-of select='$FieldSortParam'/><xsl:value-of select='$SortQueryString'/>\u0026View=<xsl:value-of select="$View"/>&quot;);javascript:return false;
    </xsl:attribute>
    <xsl:attribute name="href">javascript:</xsl:attribute>
    </xsl:when>
    <xsl:otherwise>
    <xsl:attribute name="href">
    javascript:
    <xsl:call-template name="GenFireServerEvent">
    <xsl:with-param name="param" select="concat('dvt_firstrow={',$NextRow,'};dvt_startposition={',$dvt_nextpagedata,'}')"/>
    </xsl:call-template>
    </xsl:attribute>
    </xsl:otherwise>
    </xsl:choose>
    <img src="/_layouts/{$LCID}/images/next.gif" border="0" alt="{$Rows/@tb_nextpage}" />
    </a>
    </td>
    </xsl:if>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="ms-bottompagingline3">
    <img src="/_layouts/images/blank.gif" width="1" height="1" alt=""/>
    </td>
    </tr>
    </table>
    <xsl:if test="not($GroupingRender)">
    <script>
    var topPagingCell = document.getElementById(&quot;topPagingCell<xsl:value-of select='$WPQ'/>&quot;);
    var bottomPagingCell = document.getElementById(&quot;bottomPagingCell<xsl:value-of select='$WPQ'/>&quot;);
    if (topPagingCell != null &amp;&amp; bottomPagingCell != null)
    topPagingCell.innerHTML = bottomPagingCell.innerHTML;
    </script>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>
    2. Edit the blog post xslt list view webpart on the home page of blog site and specify the custom xsl path, under Miscellaneous -> XSL Link and click ok.
    3. After the page is render it should display like the image given below
    http://moss-solutions.blogspot.com/

  • Custom field html displays as text

    I am converting a custom field from a SharePoint 2007 version to SharePoint 2013. The field works correctly in SP2007. In SP2013 it has the correct information but displays as text instead of html. I have set the "disable-output-escaping" in the
    xsl to "yes" but it does not help. Here the xml and xsl data for the field.
    <?xml version="1.0" encoding="utf-8" ?>
    <FieldTypes>
      <FieldType>
        <Field Name="TypeName">PriorityIndicator2</Field>
        <Field Name="ParentType">Text</Field>
        <Field Name="TypeDisplayName">Priority Indicator</Field>
        <Field Name="TypeShortDescription">Priority Indicator</Field>
        <Field Name="UserCreatable">TRUE</Field>
        <Field Name="Sortable">TRUE</Field>
        <Field Name="AllowBaseTypeRendering">TRUE</Field>
        <Field Name="Filterable">TRUE</Field>
        <Field Name="FieldTypeClass">Company.WebParts.PriorityIndicator2, $SharePoint.Project.AssemblyFullName$</Field>
        <Field Name="FieldEditorUserControl">/_controltemplates/15/PriorityIndicator2FieldEditor.ascx</Field>
        <Field Name="CAMLRendering">TRUE</Field> 
        <RenderPattern Name="DisplayPattern">
     <Column HTMLEncode="FALSE" />
        </RenderPattern>   
      </FieldType>
    </FieldTypes>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema"
                    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
                    version="1.0"
                    exclude-result-prefixes="xsl msxsl ddwrt"
                    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
                    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
                    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
                    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
                    xmlns:ddwrt2="urn:frontpage:internal">
      <xsl:template match="FieldRef[@Name = 'PriorityIndicator2]" mode="Text_body">
        <xsl:param name="thisNode" select="." />
        <span style="background-color:lightgreen;font-weight:bold">
          <xsl:value-of select="$thisNode/@*[name()=current()/@Name]" disable-output-escaping="yes" />
        </span>
      </xsl:template >
    </xsl:stylesheet>
    Any help would be greatly appreciated.
    Luis R. Lebron

    Hi,
    According to your post, my understanding is that the custom field not render html well.
    As you have known, we can use the “disable-output-escaping” to render the html, however, it not works in your environment.
    As a workaround, we can use JQuery to render the html, I have made a simple code snippets to achieve this scenario, you can refer to it.
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    var theTDs = $("td[id='SPFieldCustom']");
    //console.log(theTDs.html());
    TDContent = theTDs.text();
    //console.log(TDContent);
    theTDs.html(TDContent);
    </script>
    Note: You should change the id to fit your environment.
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to limit umber of items in a webpart view?

    Hi
    My scenario goes like this
    1. I have created a list
    2. Then I created a web part page and added that list on that page
    3. Now i would like to limit the number of item visible on that page to a specific number, as this page is my home page and i do not want it to look messe with so many document visible to the user or any scroll visible to prev and next the document.
    Regards
    Paru

    Hii Paru,
    There are so many ways to achieve this, the best way i would suggest to modify the view and set the item limit in the view, then Edit ListViewWebPart and apply create a xsl file deefine XSL Link property under Miscellaneous. Example(Code) for xsl file is
    given below.
    <xsl:stylesheet
    xmlns:x="http://www.w3.org/2001/XMLSchema"
    xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    version="1.0"
    exclude-result-prefixes="xsl msxsl ddwrt"
    xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls"
    xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:output method="html" indent="no"/>
    <!--Created template to fetch all items from the list -->
    <!-- Start -->
    <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema">
    <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row" />
    <div>
    <xsl:for-each select="$Rows">
    <xsl:call-template name="dvt_1.rowview" />
    </xsl:for-each>
    </div>
    </xsl:template>
    <!-- End -->
    <!-- Actual Data to be shown from here -->
    <!-- Start -->
    <xsl:template name="dvt_1.rowview">
    <li>
    <p> <span><xsl:value-of select="@Title" disable-output-escaping="yes" /></span>
    <span><xsl:value-of select="@Description" disable-output-escaping="yes"/></span>
    </p>
    </li>
    </xsl:template>
    </xsl:stylesheet>

  • XsltListViewWebpart pagination issue

    Hi,
    We are using XsltListView webpart with custom XSL to format dsQueryResponse of a custom List(named "Posts"). That custom list has Attachments. PAgination was default pagination from vwstyles.xsl. Everything works fine on Page Load.i.e., each post
    is displaye dwith corresponding attachment. But, when we use bottom pagination to go to next page or to previosu page...same attachment(attachment in the first post of that page) is repeated for each post...But, when we reload the page...attachemtns are fine
    again.
    Please help us resolve this issue..Why does default pagination behave this way?
    Thanks,
    Neelima.
    Neelima

    Hi Daniel,
    Thank you for responding..XsltListViewWebPart is like this:
    <WebPartPages:XsltListViewWebPart runat="server" AllowHide="True" PartImageSmall="" PartOrder="6" Title="Posts" ManualRefresh="False" ViewGuid="{53B037C2-222F-4431-84D1-7B7EC7768E19}" HelpMode="Modeless" AllowEdit="True" SuppressWebPartChrome="False" ShowWithSampleData="False" ListId="4a92c048-f331-4979-9073-1404e3458d5c" GhostedXslLink="main.xsl" PageSize="-1" UseSQLDataSourcePaging="True" EnableOriginalValue="False" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="False" AutoRefreshInterval="60" ViewContentTypeId="0x" Description="Use the Posts list for posts in this blog." AllowZoneChange="True" ID="g_52262e87_ee8e_4ba3_9241_74c607c9135e" MissingAssembly="Cannot import this Web Part." FrameState="Normal" AllowMinimize="True" Dir="Default" ViewFlag="9" AllowConnect="True" DetailLink="/sales/ProductAnnouncements/Lists/Posts" WebId="76774c76-912f-424b-b62b-603e428a4e64" PartImageLarge="" TitleUrl="/sales/ProductAnnouncements/Lists/Posts" ListName="{4A92C048-F331-4979-9073-1404E3458D5C}" ExportMode="NonSensitiveData" FrameType="Default" DataSourceID="" IsIncludedFilter="" AllowRemove="True" HelpLink="" IsIncluded="True" IsVisible="True" AsyncRefresh="False" AutoRefresh="False" InitialAsyncDataFetch="False" __MarkupType="vsattributemarkup" __WebPartId="{53B037C2-222F-4431-84D1-7B7EC7768E19}" __AllowXSLTEditing="true" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width=""><DataFields>
    </DataFields>
    <Xsl>
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal" xmlns:o="urn:schemas-microsoft-com:office:office">
    <xsl:include href="/_layouts/xsl/main.xsl"/>
    <xsl:include href="/_layouts/xsl/internal.xsl"/>
    <xsl:param name="AllRows" select="/dsQueryResponse/Rows/Row[$EntityName = '' or (position() &gt;= $FirstRow and position() &lt;= $LastRow)]"/>
    <xsl:param name="dvt_apos">&apos;</xsl:param>
    <xsl:template mode="Item" match="Row[../../@ViewStyleID='15']" ddwrt:ghost="" xmlns:ddwrt2="urn:frontpage:internal">
    <xsl:param name="Fields" select="."/>
    <xsl:param name="Collapse" select="."/>
    <xsl:param name="Position" select="1"/>
    <xsl:param name="Last" select="1"/>
    <xsl:variable name="NumColumns" select="count($Fields[not(@Type='Note' or preceding-sibling::*[@Type='Note'])])"/>
    <xsl:variable name="thisNode" select="."/>
    <xsl:if test="../../@ViewStyleID='15'">
    <tr>
    <td class="ms-newsletterline" colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    </xsl:if>
    <tr>
    <xsl:if test="$Position mod 2 = 1">
    <xsl:attribute name="class">ms-alternating ms-newsletteralt</xsl:attribute>
    </xsl:if>
    <xsl:for-each select="$Fields[position() &lt;= $NumColumns]">
    <xsl:apply-templates select="." mode="printTableCellEcbAllowed">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    </xsl:apply-templates>
    </xsl:for-each>
    </tr>
    <xsl:for-each select="$Fields[position() &gt; $NumColumns]">
    <tr>
    <td class = "ms-vb-tall" colspan="{$NumColumns}">
    <xsl:if test="not(@Type='Note')">
    <xsl:value-of select="@DisplayName"/>:
    </xsl:if>
    <xsl:choose>
    <xsl:when test="@Type='User'">
    <xsl:value-of select="$thisNode/@*[name()=concat(current()/@Name, '.span')]" disable-output-escaping="yes"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:apply-templates select="." mode="PrintFieldWithDisplayFormLink">
    <xsl:with-param name="thisNode" select="$thisNode"/>
    </xsl:apply-templates>
    </xsl:otherwise>
    </xsl:choose>
    </td>
    </tr></xsl:for-each>
    <xsl:if test="$NumColumns &lt; count($Fields)">
    <tr>
    <td id="ItemAttchment{generate-id()}" class="ms-vb-tall">
    <table cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td width="5%"> <span>Liite:</span>
    </td>
    <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>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    <tr>
    <td colspan="{$NumColumns}">
    <img src="/_layouts/images/blank.gif" width="100%" height="4" alt="" />
    </td>
    </tr>
    </xsl:if>
    </xsl:template></xsl:stylesheet></Xsl>
    <ParameterBindings>
    <ParameterBinding Name="dvt_sortdir" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_sortfield" Location="Postback;Connection"/>
    <ParameterBinding Name="dvt_startposition" Location="Postback" DefaultValue=""/>
    <ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
    <ParameterBinding Name="OpenMenuKeyAccessible" Location="Resource(wss,OpenMenuKeyAccessible)" />
    <ParameterBinding Name="open_menu" Location="Resource(wss,open_menu)" />
    <ParameterBinding Name="select_deselect_all" Location="Resource(wss,select_deselect_all)" />
    <ParameterBinding Name="idPresEnabled" Location="Resource(wss,idPresEnabled)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(core,noXinviewofY_DEFAULT)" />
    <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
    <ParameterBinding Name="MoreAnnouncements" Location="Resource(wss,moreItemsParen)" />
    </ParameterBindings>
    <XmlDefinition>
    <View Name="{53B037C2-222F-4431-84D1-7B7EC7768E19}" Type="HTML" Hidden="TRUE" TabularView="FALSE" DisplayName="" Url="/sales/ProductAnnouncements/Lists/Categories/Category_copy(1).aspx" Level="1" BaseViewID="1" ContentTypeID="0x" ImageUrl="/_layouts/images/posts.png">
    <Query>
    <OrderBy>
    <FieldRef Name="PublishedDate" Ascending="FALSE"/>
    <FieldRef Name="ID" Ascending="FALSE"/>
    </OrderBy>
    </Query>
    <ViewFields>
    <FieldRef Name="LinkTitleNoMenu"/>
    <FieldRef Name="Body"/>
    <FieldRef Name="PostCategory"/>
    <FieldRef Name="Created"/>
    </ViewFields>
    <RowLimit Paged="TRUE">10</RowLimit>
    <Aggregations Value="Off"/>
    <ViewStyle ID="15"/>
    <Toolbar Type="Standard"/>
    </View>
    </XmlDefinition>
    </WebPartPages:XsltListViewWebPart>
    Many Thanks,
    Neelima.
    Neelima

  • Attachment URL as hyperlink

    Hi
    I am creeating a data view in sharepoint designer; its showing multiple items which I intened to style later;
    Each item has a PDF file attachment, I'd like the Tile to open this attachment when clicked, is this possible, I;ve seen some examples of getting the attchment URL but nothing that allows you to use it in a link; heres some of the code so you can have an
    idea;
    Id like the link on @Title to be that of the URL of the attachment but not sure if this is possible as Im having now luck
       <a href="<xsl:value-of select="@Title"/">"><xsl:value-of select="@Title"/> </a><br />
                  <xsl:value-of select="@Post_x0020_Number" disable-output-escaping="yes"/><br />
                  <xsl:value-of select="@Closing_x0020_Date" disable-output-escaping="yes"/> <br />
                  <xsl:value-of select="@Post_x0020_Number" disable-output-escaping="yes"/> <br />
                  <xsl:value-of select="@Salary" disable-output-escaping="yes"/><br />
                  <xsl:value-of select="@Hours" disable-output-escaping="yes"/><br />
                  <xsl:value-of select="@Tenure" disable-output-escaping="yes"/><br />
                  <xsl:value-of select="@Tenure" disable-output-escaping="yes"/> <br />
                  <xsl:value-of select="@Department" disable-output-escaping="yes"/><br />
                  <xsl:value-of select="@Location" disable-output-escaping="yes"/><br />     
    Thanks

    Futher to this; Ive got this working but is there a way to filter the items?
    I'd like to show only the items whose field 'Audience' euals 'Support', is this possible? here is the code so far;
    <WebPartPages:DataFormWebPart runat="server" IsIncluded="True" AsyncRefresh="True" FrameType="None" NoDefaultStyle="TRUE" ViewFlag="8" Title="DataView 1" PageType="PAGE_NORMALVIEW" __markuptype="vsattributemarkup" __WebPartId="{AD914856-9C77-4AFF-ADD6-EDD49B04C9D4}"
    id="g_ad914856_9c77_4aff_add6_edd49b04c9d4" __AllowXSLTEditing="true" WebPart="true" Height="" Width="">
      <DataSources>
        <SharePoint:SPDataSource runat="server" DataSourceMode="List" UseInternalName="true" UseServerDataFormat="true" selectcommand="&lt;View&gt;&lt;/View&gt;" id="spdatasource1">
          <SelectParameters>
            <asp:Parameter Name="ListID" DefaultValue="B66E05C2-CC41-499A-A789-31BA0F507C69"/>
          </SelectParameters>
          <DeleteParameters>
            <asp:Parameter Name="ListID" DefaultValue="B66E05C2-CC41-499A-A789-31BA0F507C69"/>
          </DeleteParameters>
          <UpdateParameters>
            <asp:Parameter Name="ListID" DefaultValue="B66E05C2-CC41-499A-A789-31BA0F507C69"/>
          </UpdateParameters>
          <InsertParameters>
            <asp:Parameter Name="ListID" DefaultValue="B66E05C2-CC41-499A-A789-31BA0F507C69"/>
          </InsertParameters>
        </SharePoint:SPDataSource>
      </DataSources>
      <datafields>@Title,Title;@Post_x0020_Number,Post Number;@Start_x0020_Date,Start Date;@Closing_x0020_Date,Closing Date;@Closing_x0020_Date_x0020__x002d_,Closing Date - Ongoing;@Salary,Salary;@Hours,Hours;@Tenure,Tenure;@Department,Department;@Location,Location;@Audience,Audience;@Attachment,Attachment;@Comments,Additional
    Comments;@ID,ID;@ContentType,Content Type;@Modified,Modified;@Created,Created;@Author,Created By;@Editor,Modified By;@_UIVersionString,Version;@Attachments,Attachments;@File_x0020_Type,File Type;@FileLeafRef,Name (for use in forms);@FileDirRef,Path;@FSObjType,Item
    Type;@_HasCopyDestinations,Has Copy Destinations;@_CopySource,Copy Source;@ContentTypeId,Content Type ID;@_ModerationStatus,Approval Status;@_UIVersion,UI Version;@Created_x0020_Date,Created;@FileRef,URL Path;@ItemChildCount,Item Child Count;@FolderChildCount,Folder
    Child Count;@AppAuthor,App Created By;@AppEditor,App Modified By;</datafields>
      <XSL>
        <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl
    msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20"
    xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
          <xsl:output method="html" indent="no"/>
          <xsl:decimal-format NaN=""/>
          <xsl:param name="dvt_apos">&apos;</xsl:param>
          <xsl:param name="ManualRefresh"></xsl:param>
          <xsl:variable name="dvt_1_automode">0</xsl:variable>
          <xsl:template match="/" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.SharePoint.WebControls">
            <xsl:choose>
              <xsl:when test="($ManualRefresh = 'True')">
                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td valign="top"><xsl:call-template name="dvt_1"/>
                    </td>
                    <td width="1%" class="ms-vb" valign="top"><img src="/_layouts/images/staticrefresh.gif" id="ManualRefresh" border="0" onClick="javascript: {ddwrt:GenFireServerEvent('__cancel')}"
    alt="Click here to refresh the dataview."/></td>
                  </tr>
                </table>
              </xsl:when>
              <xsl:otherwise>
                <xsl:call-template name="dvt_1"/>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:template>
          <xsl:template name="dvt_1">
            <xsl:variable name="dvt_StyleName">Table</xsl:variable>
            <xsl:variable name="Rows" select="/dsQueryResponse/Rows/Row"/>
            <xsl:variable name="dvt_RowCount" select="count($Rows)"/>
            <xsl:variable name="IsEmpty" select="$dvt_RowCount = 0" />
            <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/>
            <xsl:choose>
              <xsl:when test="$dvt_IsEmpty">
                <xsl:call-template name="dvt_1.empty"/>
              </xsl:when>
              <xsl:otherwise>
                <table border="0" width="100%" cellpadding="2" cellspacing="0">
                  <tr valign="top">
                    <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
                      <th class="ms-vh" width="1%" nowrap="nowrap"></th>
                    </xsl:if>
                  </tr>
                  <xsl:call-template name="dvt_1.body">
                    <xsl:with-param name="Rows" select="$Rows"/>
                  </xsl:call-template>
                </table>
              </xsl:otherwise>
            </xsl:choose>
          </xsl:template>
          <xsl:template name="dvt_1.body">
            <xsl:param name="Rows"/>
            <xsl:for-each select="$Rows">
              <xsl:call-template name="dvt_1.rowview" />
            </xsl:for-each>
          </xsl:template>
          <xsl:template name="dvt_1.rowview">
            <tr>
              <xsl:if test="position() mod 2 = 1">
                <xsl:attribute name="class">ms-alternating</xsl:attribute>
              </xsl:if>
              <xsl:if test="$dvt_1_automode = '1'" ddwrt:cf_ignore="1">
                <td class="ms-vb" nowrap="nowrap"><span ddwrt:amkeyfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="view"></span></td>
              </xsl:if>
              <h2><a href="<xsl:value-of">{@Attachment.desc}"><xsl:value-of select="@Title"/> </a></h2>
              <br />
              <div class="joblist">Post Number: <xsl:value-of select="@Post_x0020_Number" disable-output-escaping="yes"/><br />
                <b>Closing Date: <xsl:value-of select="@Closing_x0020_Date" disable-output-escaping="yes"/></b><br />
                <b>Salary: </b><xsl:value-of select="@Salary" disable-output-escaping="yes"/><br />
                <b>Hours: </b><xsl:value-of select="@Hours" disable-output-escaping="yes"/><br />
                <b>Tenure: </b> <xsl:value-of select="@Tenure" disable-output-escaping="yes"/><br />
                <b>Department: </b> <xsl:value-of select="@Department" disable-output-escaping="yes"/><br />
                <b>Location: </b> <xsl:value-of select="@Location" disable-output-escaping="yes"/><br />
              </div>
              <br />
              <br />
            </tr>
          </xsl:template>
          <xsl:template name="dvt_1.empty">
            <xsl:variable name="dvt_ViewEmptyText">There are no items to show in this view.</xsl:variable>
          </xsl:template>
        </xsl:stylesheet>
      </XSL>
    </WebPartPages:DataFormWebPart>

  • CustomActions not working with ToolbarType=None

    Hi, I created multiple Ribbon Custom Actions for a SharePoint 2013 Document Library. They are placed in the "New" group and everything works fine so far. One of these actions is a custom upload action and I want users to upload documents using
    only this action. In the background there also is a EventListener that verifies that.
    So that users are not confused I removed the default upload action by overriding it via another CustomAction. Of course I also want to remove the "New Item" link and the Drag&Drop zone. This would be done very easily by simply setting the ToolbarType
    of the ListView/WebPart to None, BUT when I do so, the Ribbon renders as default! My custom actions do not appear anymore and the actually overriden actions are back again. This seems like a sick bug to me or is there any logic behind that?
    Of course there are other options to hide the ToolBar, i.e. using JSLink, but this would not match my understanding of using JSLink. A custom XSL and overriding the toolbar template would be fine for me as well, but I have bad experiences with that. Even
    when using a very simple XSL like the following one, makes the list not look and behave like a default view:
    <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
    xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
    xmlns:SharePoint="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal">
      <xsl:import href="/_layouts/15/xsl/main.xsl" />
    </xsl:stylesheet>
    Using this XSL I would expect the list to totally look and behave like a default view, but it doesn't. Under the import section I would like to add the overwrite template for the toolbar. What am I doing wrong here? Is importing the main.xsl the wrong starting
    point?
    Many thanks in advance!
    Regards
    MH

    Hi,
    According to your description, when setting the ToolbarType=None to hdie the “new document or drag files here” button, the custom actions in Ribbon disappear, you
    want to display your custom actions as well as hide the Toolbar.
    As a workaround, I would suggest you apply custom CSS style into the page to hide the Toolbar.
    In my environment, the HTML source code of the Toolbar like this:
    I hide it by applying such a CSS style in the page:
    More information about hiding page elements using CSS:
    https://kitt.hodsden.org/blog/2013/07/5_ways_hide_element_css
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to read XSLT list item of a list view web part in SharePoint designer 2010 using jquery

    Hi ,
    I have a requirement to get data from one list(e.g., A) and display in some other list's(e.g.,B) custom display form(e.g., CustomDispForm.aspx). 
    Here I am going to do this with the help of Jquery SP Services using GetListItems(). For getting the data I need to pass two parameters from list(B), but the data is like <xsl:value-of select="@testField_"/> .
    I have stuck how to pass such variables in Jquery function.
    Please let me know how to achieve .
    Thanks in Advance.

    Follow below code to pass variables to jQuery function in xslt. It will better to use parameters.
    <xsl:variable name="varTestFields">
    <xsl:value-of select="@TestField_"/>
    </xsl:variable>
    <!-- jQuery Function - Check the passing of parameters -->
    jQueryFunction('{varTestFields}'
    OR
    <!-- jQuery Function - Check the passing of parameters -->
    jQueryFunction('{@TestFields_}'
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

Maybe you are looking for

  • Multiple email accounts - only one works correctly

    Hello, I've had a problem with using two email accounts simultaneously on my Z10 from the very beginning. I started with OS 10.1 and now on 10.2 the problem still occurs. My problem is that I can set up one account and it just works fine, but if I se

  • Optical drive fails to read most DVD's

    Product: HP Pavilion dv4t-1500, Windows 7 64-bit OEM. A few weeks ago my DVD drive stopped reading DVD's. I put a DVD in and close the door and it spins up, then down, spins up, then down. And, most of the time it never loads the video content. Frequ

  • Uninstalling plug-ins for Safari, but not Firefox

    Hi all, I've been driving myself kind of nuts over this. Is there a way for a plug-in to be installed only for Firefox and not Safari? I like the built-in PDF reader in Safari, but I want the Schubert-IT PDF browser plug-in for Firefox. Both browsers

  • Does anyone know the Actions of the Wired Headset of the Palm Pre?

    smkranz I am a volunteer, and not an HP employee. Palm OS ∙ webOS ∙ Android

  • Adobe Premiere Pro CS4 crashes

    My Premiere Pro CS4 crashes while It loads the workspace and then automatically close. I had this problem before and there was a solution but i saved it as my favourites and it no longer exist because of the new forums. Damn Adobe