SharePoint Designer 2010 – XSLT List View Web Parts – Using Header and Footer

יום רביעי, מרץ 23, 2011

In SharePoint Designer 2010 we can use two types of Data View Web Parts 1. The first web part is Empty Data View WP (DataFormWebPart  Web Part), You need select data source for show specific data. You can select "Header" or "Footer" checkbox in "Design" Ribbon.  After selecting you can see inside XSLT code two sections and you can add text or HTML code 2. The second Web Part is List Data View WP ( XsltListViewWebPart Web Part). In this WP you cann't select header or footer inside "Design" Ribbon. But you can insert header or footer manually inside XSLT code, you need locale this part of XSLT code: <xsl:template match="/" ddwrt:ghost="hide"> Header...

SharePoint Designer 2010 – XSLT Filtering ( XSLT Filter ) in XSLT List View Web Parts.

יום שני, מרץ 21, 2011

In SharePoint Designer 2010 you can insert Data View Web Parts in two ways 1. The first way is Empty Data View WP - .DataFormWebPart  Web Part. You can put thia WP on page and after this insert data source for show specific data. In this WP you can filter data by specific data source field and XSLT condition.   After selecting "Add XSLT filtering" you can click on button "Edit" and write or choose XSLT Condition.    For example if we need show only events those will came after current time (XSLT condition on DateTime Calendar Field), we put XSLT condition: [number(translate(substring-after(@EventDate,' '), ':','')) >...