Logo Redirect to Root Site Collection

<SharePoint:SPLinkButton NavigateUrl=”//” CssClass=”ms-siteicon-a” runat=”server” id=”onetidProjectPropertyTitleGraphic” > <SharePoint:SiteLogoImage CssClass=”ms-siteicon-img” name=”onetidHeadbnnr0″ id=”onetidHeadbnnr2″ LogoImageUrl=”/_layouts/15/images/siteIcon.png?rev=23″ runat=”server”/> </SharePoint:SPLinkButton >

Read More

SQL Server 2012 for SharePoint 2013 checklist

  Use multiple: SQL Aliases (separate 1 for search). Dedicate SQL Server for SharePoint. Set max degree of parallelism (MAXDOP) to 1 for instances of SQL (SP will do this when SP is installed).  Number of processes for each SQL statement. Mixed mode authentication – Don’t install SQL 2012 for SP in mixed mode auth…

Read More

I deleted the entire configuration cache directory. Now What?

a)     To recreate the directory, you need to know the directory name (which is a GUID). You can find this GUID in the registry entry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14\Secure\ConfigDB. Copy the GUID from Id attribute and create the new directory: C:\ProgramData\Microsoft\SharePoint\Config\GUID. b)     In the directory you just created, create another file called cache.INI. Open the…

Read More

SharePoint 2013: Product Configuration Wizard stuck on task 9 of 10

Delete the SharePoint Products Configuration Wizard dialog.  Terminate the process of necessary to remove it. Open the Services.msc panel, and then look for the SharePoint Timer Service. Stop this service. Open Windows Explorer, and then navigate to the cache folder at:C:\ProgramData\Microsoft\SharePoint\Config. Look for the most recent cache folder, and then open it. Take note of…

Read More

Watermark for SharePoint 2013

#watermark { display: block; position: fixed; top: -10%; left: 105px; transform: rotate(-45deg); transform-origin: 50% 50%; opacity: .2; font-size: 80px; color: #d3d3d3; width: 480px; text-align: center; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; -moz-user-select: -moz-none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; user-select: none; } atermark { display:none; } </style> <script type=”text/javascript”> $(“watermark”).hide(); </script> <div id=”watermark”…

Read More

Disable Right Click in SharePoint 2015

<script language=”javascript”> function Disable_Control_C() { var keystroke = String.fromCharCode(event.keyCode).toLowerCase(); if (event.ctrlKey && (keystroke == ‘c’ || keystroke == ‘v’)) { alert(“Duplication of data is not allowed!”); event.returnValue = false; // disable Ctrl+C; document.addEventListener(“keydown”, function(e) { if (e.keyCode == 83 && (navigator.platform.match(“Mac”) ? e.metaKey : e.ctrlKey)) { e.preventDefault(); alert(‘captured’); } }, false); window.addEventListener(“dragover”,function(e){ e = e…

Read More

Disable Clipboard

<script language=”JavaScript”><!– function clp_clear() { var content=window.clipboardData.getData(“Text”); if (content==null) { window.clipboardData.clearData();} setTimeout(“clp_clear();”,1000);} –></script>

Read More

Redirect Page

<script type=”text/javascript”> if (window.location == “viewlsts.aspx”) { window.location.href = default.aspx’; } </script>

Read More

Message “The expected version of the product was not found on the system ” when install Cummulative Updates

When we try to install a Cummulative Update in SharePoint or Project Server, sometimes a message appears: “The expected version of the product was not found on the system” And the update can not be installed. To fix this problem, you can execute the cummulative update in a command Window and add   “PACKAGE.BYPASS.DETECTION.CHECK=1” Example to execute CU September…

Read More

The file system cache on all FE’s on which the timer service is running needs to be cleared.

Stop the Windows SharePoint Services Timer service (Found in Windows Services) Navigate to the cache folder  In Windows Server 2008, the configuration cache is in the following location:  Drive:\ProgramData\Microsoft\SharePoint\Config  In Windows Server 2003, the configuration cache is in the following location:  Drive:\Documents and Settings\All Users\Application Data\Microsoft\SharePoint\Config  Locate the folder that has the file “Cache.ini”  (Note: The…

Read More