Skip to main content

Posts

Showing posts from 2014

Page layout HTML changes not reflected in associated aspx

I had this issue for quite sometime with a SharePoint Online project I was working on. I use Design Manager to create a new layout page and add snippets to the html layout. I would create webpart zones, add my webpart snippets on to the html, save and publish but the resulting aspx page wouldn't have any of my webparts in it. I checked it from SPD 2013 and everything looks perfect, I can see all the code snippets in there. It was really strange and I had no clues. I had some content search webparts in the layout and one content editor webpart with a link to a text file with some css in it. After countless hours on the internet I read about few other people having similar issues when they had custom css on the layout pages to hide quick launch. I tried removing my content editor webpart and everything seems to be normal. A new page created using the layout had all the webparts in it and even the layout preview was displaying fine. I needed this css somewhere on the page and

This feature has been disabled by your administrator - Office 2013

I got this rather nagging error while trying to customize a List in our SharePoint Online site using Infopath 2013. It turned out that you have to do some registry hack to get this working. Change the value of registry key  SignInOptions under HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\SignIn\ to 0. You may also want to change the  UseOnlineContent key under HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Common\Internet\ to 2. If you cannot find these keys in registry a new DWORD can be created. There is a blog post from Sahil Malik which helped me solve this issue: http://blah.winsmarts.com/2013-5-Registry_keys_to_administer_Office_365_in_your_Organization.aspx Here is the Microsoft document on this: http://technet.microsoft.com/en-us/library/jj715259(v=office.15).aspx These settings are best handled through Group Policy and you may want to check with your IT/Network team before doing these changes.

Hide Office 365 Logo from SharePoint online sites

Office 365 logo in the SharePoint sites can be changed using more than one method and one of those is using Javascript. We can use DOM to hide or change the logo details and add the function to _spBodyOnLoadFunctionNames. Here is a test script for this purpose: function HideOffice365Logo()  {     var elem = document.getElementById('O365_MainLink_Logo');     elem.innerHTML = "Your Text";     elem.href = "https://bing.com";     elem.title = "Bing!!";     elem.style.color = "#fff"; } _spBodyOnLoadFunctionNames.push("HideOffice365Logo"); The above script hides the logo and replaces it with a text that says Bing! and links to bing.com site. I'm looking for a way to change the logo to another custom image, I'll update this post once I crack it.

SharePoint & Powershell

This is an attempt to capture the things I learned about working with SharePoint using Powershell so I can refer back to it. 1. I was trying to get a list of all service application proxies with in the default proxy group and no matter how I tried output was truncated. Here is the command I used: Get-SPServiceApplicationProxyGroup | Format-Table -Property Defaultproxies  -Wrap -AutoSize | Out-String -Width 4096 Format-Table with parameters didn't seem to work in this case. It seems there is a property in PowerShell that has to be set for this output to display all items and here is how we can set it: PS C:\Windows\system32> $FormatEnumerationLimit = 25 I had to set this value to 25 to get a proper formatted output.

Users do not show up in SharePoint People Search or People Picker

I had this issue with people picker in a classic mode web application in SharePoint 2013 and this site is in 2010 mode - users in certain sub-domains would not show up in People Picker. I was aware of stsadm commands to fix this and we ran the stsadm command to hook up people picker with another domain some time back. The latest issue was that people picker was not returning users from the root domain and few sub domains. After researching on the internet I found (contrary to my thoughts) that we could use PowerShell and not just stsadm to map People Picker to domains. It is a good idea to first check what domains are added/mapped to the web application using the following commands: $wa = Get-SPWebApplication -Identity http://mywebapp.com #List the Domains $wa.PeoplePickerSettings.SearchActiveDirectoryDomains This will list the domains currently People Picker is looking up for that web application. I used the following script to map our AD forest to People Picker:

Sorry, Something went wrong - SharePoint Search Results

How many times have we seen this in SharePoint 2013! I was working on custom search results page that had custom display templates. These display templates weren't complex and were almost similar to OOB templates. Everything seemed fine, I was getting results based on my query and managed metadata settings. All looked well until users started hitting these search pages. They were greeted with the message "Sorry, something went wrong". Search refiners in the page was working fine but not the results webpart. I had no clue what was going wrong. I tried ULS logs and found access denied error on the .js file that gets created part of the display template while logging in to the site as an end user with read access. I saw similar error in fidler while logging in to the site as an end user. Here are the errors I found using fiddler and IE dev toolbar: "file was blocked due to mime type mismatch" "Access denied. Item does not exist. It may have been dele

SharePoint 2013 & Project Server 2013 - Mistake?

I think we were bit too early to upgrade our SharePoint and Project Server farm to 2013 version! The one thing I do not understand with SharePoint 2013 (had the same concern with 2007 & 2010) is that what does Microsoft expect its customers who has invested in hardware, software, people, time and money to do with all the known issues in these products.  Here are a few examples: Blob Cache Issue Project Server 2013 - Missing Resource Issue SharePoint 2013 - Distributed Cache Bug SharePoint 2013 - Usage and Web Analytic issue   There are many other examples and we learn that these are bugs when somebody finds a workaround or a fix and mention it in their blog. But then these are not from MS officially but then those fixes work most of the time. I wish MS invested more in testing and made sure such a major release of a product like SharePoint 2013 didn't have so many issues. Looking forward to SP1 now but the best bet would be not to upgrade to SharePoint 2013 u