Article archive

Xslt Paging and Sorting according to attribute

08/12/2012 03:43
<?xml version="1.0" encoding="iso-8859-1"?> <!-- Edited by Lukas Sevcik® --> <xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform">     <xsl:param name="pageNr" select="2"/>     <xsl:param...

Simple paging in results

08/12/2012 03:05
<?xml version="1.0" encoding="iso-8859-1"?> <!-- Edited by Lukas Sevcik® --> <xsl:stylesheet version="1.0" xmlns:xsl="https://www.w3.org/1999/XSL/Transform">     <xsl:param name="pageNr" select="2"/>     <xsl:param...

Xslt comparison operators

08/12/2012 01:59
XPath...

<xsl:apply-templates>

08/12/2012 00:51
Examle taken from Xslt W3 Schools: https://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog_apply xslt file: <?xml version="1.0" encoding="ISO-8859-1"?> <!-- Edited by XMLSpy® --> <xsl:stylesheet...

Set filter in Content Query Web Part

07/12/2012 15:37
set filtering for Content Query Web part in .webpart file: We have 'Author' lookup field on the page with some value set and we want to show all results where 'author' in querystring is equal to 'Author' field on the queried list.   set filtering for Content Query Web part in...

Send querystring to Xslt

07/12/2012 15:25
1. Define querystring in .webpart file <property name="ParameterBindings" type="string">&lt;ParameterBinding Location="QueryString(category)" Name="CategoryString"/&gt;</property>   or equivalent in .aspx file <ParameterBindings> <ParameterBinding...

Case sensitive comparison in powershell

07/12/2012 15:20
case sensitive comparison   $item=$node|where-object {$_.Title -ccontains $nodeName} instead of case sensitive comparison   $item=$node|where-object {$_.Title -contains $nodeName}   $a="America" $b="america" $a -eq $b    is True $a -ceq $b is False

XSLT function (template) syntax

06/12/2012 13:57
Simple code translated from C# to Xslt public static void main() { int number1 = 10; int number2 = 12;     Console.Write("{0}", number1);     Console.Write("{0}", (number1 > number2?"-", "+"));     Console.Write("{0}",...

Run powershell script from C#

06/12/2012 12:51
how to run ps script from csharp https://ctrlf5.net/?p=231 using System.Management.Automation; using System.Collections.ObjectModel; using System.Management.Automation.Runspaces; //you need to have this assembly installed (from SDK)     //Powershel script...

Show Pages in Global Navigation

06/12/2012 12:34
$siteUrl="https://server/sitecollection" # check to ensure Microsoft.SharePoint.PowerShell is loaded     $snapin=Get-PSSnapin | Where-Object {        $_.Name -eq 'Microsoft.SharePoint.Powershell'}        if ($snapin...
Items: 241 - 250 of 384
<< 23 | 24 | 25 | 26 | 27 >>