List instance won’t inherit the content type in SharePoint 2013

I spent a few hours on this issue and if I hadn’t had a colleague help me fix the issue I’d probably still be working on it.

The issue was I’d created 2 custom list instance in Visual Studio and deployed them. The first list inherited the content type assigned to it but the second one wouldn’t, it would take the first lists content type. The fix for the issue ,which in no way is obvious it the list template type id.

DisplayName=”List Name”
Description=”My List Definition”

In the template you have the type which is normally between 100 and 200, this is where the issue lies. SharePoint has apparently reserved these numbers between 100 and 10,000 for it self. All I needed to do was ad a number over 10,000 and it worked fine.

Tabbed web part zone SharePoint 2013

I’ve just been looking into this for a tabbed web part zone and recreated some script found online here to work with SharePoint 2013 ​​​​​​. I’ve modified it to take the image from the web part header as well so it renders it in the tab.

​(function ($) {

$.fn.wpTabify = function () {
 if($(‘.ms-WPAddButton’).size() == 0){
      return this.each(function(i){
        var tabList = $(‘<ul class=”wpt-ui-tabs-nav”/>’);
        var panels = $(‘<div class=”wpt-ui-tabs-wrapper”/>’);
 $(tabList).append(‘<li>’ + ‘<img src=”‘ + $(this).find(‘ img’).attr(‘src’) + ‘”/>’ + ‘<a href=”#ui-tab-panel’ + i + j + ‘”>’ + $(this).find(‘’).text() + ‘</a></li>’);
          var thisPanel = $(‘<div id=”ui-tab-panel’ + i + j + ‘” class=”wpt-ui-tabs-panel”/>’);
           var panelContents = $(this).detach();
if($(tabList).find(‘li’).size() > 0){
else {
return false;

Use this to call the function

<script type=”text/javascript”>

It uses jQuery UI to render. so use the bellow links.

<script type=”text/javascript” src=”//”></script>
<script type=”text/javascript” src=”//”></script>
<link rel=”stylesheet” href=”//” />​

Issue with IOS 8 and Meanmenu script on SharePoint

Recently I’ve used the Meanmenu script on a project to render a mobile menu. This was in SP 2007 and worked great with a little editing of the script for SharePoint as it is originally developed to work with a UL element. SharePoint 2007’s navigation is formed with tables.

Now this all worked on all mobiles including IPhones. Since the IOS 8 update and the release of the new IPhone 6 and 6+ the menu didn’t render on IOS 8 devices. After updating to IOS 8 on my IPad as well I found the same issue.

With a lot of investigation and help from the telerik app developer software I got to the root of the problem. The issue was for some unexplained reason IOS 8 was rendering the navigation with span tags nested in a div. I had to create a separate script that would render this markup to a mobile menu. Problem solved.

MSSqlserver error 1069 logon failure

I had an issue with this when I started up my SharePoint 2013 VM. I couldn’t start the MSSqlserver due to a log on error.

I found these steps that seemed to fix the issue.

Steps are:

  • Right click on the Service in the Services mmc
  • Click Properties
  • Click on the Log On tab
  • The password fields will appear to have entries in them…
  • Blank out both Password fields
  • Click “OK”

If that doesn’t work try adding the account and password again.

SharePoint 2013 Promoted links – Rendering without pagination

I’ve seen a number of blogs about adding script to the page to render promoted links without pagination and while some work others don’t. Some of the ones that do work now either seem not to work due to an update from Microsoft or don’t work with more than one promoted links web part on the page.

if you’re finding the same issues there is an extremely easy fix, Custom CSS. Add this snippet bellow to a script editor on the page and it’ll fix all your issues.

<style type=”text/css”>.cell-margin {
margin: 10px;
}.ms-promlink-body {
position: relative;
width: 100%;
height: inherit;
float: left;
left: 0px;


Office 365 and SharePoint 2013 master page editing

First thing to note with editing the master page on SP 2013 is that it isn’t the master file you’ll be editing it’s the html element of the master page. Creating your own from scratch is simple to do if you know HTML and CSS. Just create your html as you would a web site and then upload it, Design manager gives you the code snippets to add the many SharePoint controls and then all you’ll need is to publish it.


One issue you’ll probably find and which is a know issue is the editing of the oslo.html file will break the add an app and change the look pages. Luckily there is a fix for this which is reasonably simple just by setting these place holders to visible=”true” it’ll work again, that’s if they are set to false in the first place which you probably find is the case. Place holders that need changing are DeltaPlaceHolderLeftNavBar, PlaceHolderLeftNavBar, DeltaPlaceHolderPageTitleInTitleArea, and PlaceHolderPageTitleInTitleArea.

SharePoint people search set up for custom search property

On a recent project I was asked to add a custom column to the people search results and thought I’d share the steps. The column name was for the Telephone Extension, change this in the code bellow with your column name.

  1. In central admin go to Application Management > Manage service Applications
  2. Select User Profile Default SA and click the Manage User Properties
  3. Select New Property and fill in the details as bellow


  1. Once this has been done Run a full crawl.
  2. Navigate to the Search site on the site collection
  3. Edit the page and edit the “People Search Core Results” web part
  4. Open the “display properties” menu and uncheck the “Use Location Visualization” checkbox
  5. Click the “XSL Editor” button
  6. Search for the line  <xsl:variable name=”haswph”       select=”string-length(workphone) &gt; 0″/> and add this line of xsl after it on the line bellow <xsl:variable name=”haste”       select=”string-length(telephoneextension) &gt; 0″/>
  7. Then search for this few lines of code

<xsl:if test=”$haswph”>
<li id=”PhoneField”>
<xsl:apply-templates select=”hithighlightedproperties/workphone” />

And add the following below it

<xsl:if test=”$haste”>
<li id=”TelephoneExtension”>
<xsl:when test=”hithighlightedproperties/telephoneextension”>
<xsl:call-template name=”HitHighlighting”>
<xsl:with-param name=”hh” select=”hithighlightedproperties/telephoneextension” />
<xsl:value-of select=”telephoneextension” />

  1. Save and then edit the properties window above the xsl editor option . select all and add this code over it removing the present code with the code listed bellow

<Columns>         <Column Name=”WorkId”/>      <Column Name=”UserProfile_GUID”/>                <Column Name=”AccountName”/>           <Column Name=”PreferredName”  HitHighLight=”true”/>            <Column Name=”YomiDisplayName” HitHighLight=”true”/>           <Column Name=”JobTitle” HitHighLight=”true”/>                 <Column Name=”Department” HitHighLight=”true”/>   <Column Name=”WorkPhone”  HitHighLight=”true”/>    <Column Name=”TelephoneExtension”  HitHighLight=”true”/> <Column Name=”OfficeNumber” HitHighLight=”true”/> <Column Name=”PictureURL”/>               <Column Name=”HierarchyUrl”/>               <Column Name=”WorkEmail”  HitHighLight=”true”/>       <Column Name=”Path”/>                 <Column Name=”HitHighlightedSummary”/>     <Column Name=”HitHighlightedProperties”/>   <Column Name=”Responsibility” HitHighLight=”true”/>    <Column Name=”Skills” HitHighLight=”true”/>   <Column Name=”SipAddress” HitHighLight=”true”/>         <Column Name=”Schools” HitHighLight=”true”/>             <Column Name=”PastProjects” HitHighLight=”true”/>      <Column Name=”Interests” HitHighLight=”true”/>          <Column Name=”OrgNames” HitHighLight=”true”/>          <Column Name=”OrgUrls”/>      <Column Name=”OrgParentNames” HitHighLight=”true”/>            <Column Name=”OrgParentUrls”/>        <Column Name=”Memberships” HitHighLight=”true”/>   <Column Name=”AboutMe” HitHighLight=”true”/>         <Column Name=”BaseOfficeLocation” HitHighLight=”true”/>         <Column Name=”ServiceApplicationID”/>           <Column Name=”SocialDistance”/> </Columns>

12.   Once this is done and the search crawl is finished save the page and search for a person making sure their profile has the Telephone Extension property filled in