SharePoint XSLT: ends with
XSLT 1.0 has no ends-with function, so compare the last characters of the string with substring.
<xsl:when test="substring($url, string-length($url) - 3) = '.pdf'">Tag
XSLT 1.0 has no ends-with function, so compare the last characters of the string with substring.
<xsl:when test="substring($url, string-length($url) - 3) = '.pdf'">Fix Office Web Apps in SharePoint 2010 failing to open any document by checking the viewing service, its proxy and the proxy group.
Use one advanced setting on the document library to keep its items out of search results.
Replace the XSL of the Search Core Results web part to see the raw XML, so you can tell search problems from XSLT problems.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<xmp><xsl:copy-of select="*"/></xmp>
</xsl:template>
</xsl:stylesheet>Fix a SharePoint 2010 solution deployment stuck on Deploying by restarting the admin service and running the pending admin jobs.
stsadm -o execadmsvcjobsA PowerShell script that finds every user in Active Directory, adds them to a SharePoint 2010 group and syncs their profile details.
$spgroupname = "Group Name"
$sitename = "http://sitename"
$domain = $env:USERDOMAIN
$spsite = New-Object Microsoft.SharePoint.SPSite($sitename)
$rootweb = $spsite.RootWebPowerShell script to create the Word Automation Services service application in SharePoint 2010.
$serviceName = "Word Automation Service"
$appPool = $null
Add-PSSnapin Microsoft.SharePoint.PowerShell
$appPool = Get-SPIisWebServiceApplicationPool -Identity <appPoolName>
if ($appPool -eq $null)Use the Word Automation Services ConversionJob object to bulk convert documents, for example DOCX to PDF, and monitor the job.
Open a page in a SharePoint 2010 modal dialog from JavaScript and handle the result when it closes.
var options = SP.UI.$create_DialogOptions();
options.width = 450;
options.height = 450;
options.url = "/_layouts/PageName.aspx";
options.showClose = true;
options.title = "Dialog Title";