Removing the Name ActiveX Control Warning in SharePoint 2010 4

When I initially looked at SharePoint 2010 I was disheartened to see that my old nemesis the Name.dll ActiveX control warning was still popping up on my sites. If you haven’t seen it yet, here is a screenshot: The warning has to do with SharePoint wanting to show presence info (the little green icon next to people in your organization that are currently online). It often ends up showing on public SharePoint sites because it is elusive in development environment, it will only show in these circumstances: IE7 or IE8 Site must not be in the Intranet zone, which typically automatically includes any site that you are local to or share a domain with Must have Office, or Messenger or any other similar program installed Must have NOT already said yes to IE installing the ActiveX control If any one of those criteria isn’t met, the warning doesn’t show for you, but it most likely ...

Error in Current Docs for Upgrading Fixed Width Master Pages to SharePoint 2010 4

This probably affects anyone that has tried to make a fixed width master page in SharePoint 2010 (unless you have already noticed the error) it affects the MSDN article Upgrading an Existing Master Page to the SharePoint Foundation Master Page and my Starter Master Pages (expect an update to my starter master pages very soon). In the article it states: If your page is fixed width, add the class s4-nosetwidth to the bodyContainer div element. The updated div element would look like the following. <div ID="s4-bodyContainer" class="s4-nosetwidth"> In actuality you need to place the s4-nosetwidth on the previous div tag like this: <div ID="<strong>s4-workspace</strong>" class="s4-nosetwidth"> Without that line SharePoint injects CSS inline to your and sets the width the current size of the browser (which completely wrecks most fixed width design).

SP2010 Branding Tip #11 – Un-Floating the Ribbon in custom Master Pages 8

In the 2010 out of the box master pages, Microsoft has included code that causes the ribbon to float above the rest of the page content (you might say it sticks to the top of the page). You can see the effect here: See how the right scroll bar stops at the ribbon? That’s the new functionality at work. It makes editing the page a nicer because you don’t have to scroll to the top of the page constantly. But what if you are doing a VERY stylized branded SharePoint site? Sometimes this functionality can get confused, especially if you are using CSS to position the body “fixed”. I saw this happen recently when Paul Keijzers (@KbWorks on Twitter) was having problems using my Starter Master Pages (http://startermasterpages.codeplex.com). His problem would have been the same if he used Microsoft’s v4.master. So, how do we make the page scroll in a more traditional fashion? Pretty easy, ...

New SDTimes Article: The New Theming Engine 1

My latest article for SD Times has been published to their website, titled Spotlight on 2010: The New Theming Engine. Obviously, it’s an overview of how themes work in SharePoint 2010. Check it out: Spotlight on 2010: The New Theming Engine

SP2010 Branding Tip #10 – Hide Ribbon Completely for Anonymous Users 1

This question came in as a comment on a previous blog post. I’m sure there may be better ways to do this, but one thing I did on the http://beta.sharepoint911.com site was to hide the ribbon completely for non authorized users. I did this by using an asp:LoginView with an AnonymousTemplate and hiding the CSS. <asp:LoginView id="LoginView" runat="server"> <AnonymousTemplate> <style type="text/css"> body #s4-ribbonrow { display: none; } </style> </AnonymousTemplate> </asp:LoginView> Of course if you do this, you will probably need to handle creating a login link for your authorized users yourself.

SharePoint 2007 Branding Article – Conditional Logic in XSL Using the XML Web Part

I just realized that my SD Times “SharePointer” article from September was published (probably has been for a while). This article is a simple example of how you can use conditional logic in XSL to color code XML data in a SharePoint XML Web Part based on certain numeric values in the data. SD Times – Share Pointers: Conditional Logic in XSL Using the XML Web Part

Starter Master Pages for SharePoint 2010 (Formerly Known as Minimal Master Pages) 30

In the tradition of those SharePoint branding folks that came before me, I have put together two minimal master pages that can be used to start a SharePoint 2010 Branding project. They contain only very minimal HTML styling in order to accommodate some of the specific needs of SharePoint 2010 and are commented throughout. I hope you find them useful as a good starting point for creating branded SharePoint sites. If you make improvements upon them that could be used to improve the Starter Master Page experience for others, please share the changes with me so that I can potentially roll them into the main distribution. Note: With SharePoint 2010, Microsoft has actually included their own master page called minimal.master which has a specific use for pages that will have very minimal chrome. Because of this, I am using the term Starter Master Page for my Master Pages instead of the term Minimal Master Page. ...

SP2010 Branding Tip #9 – Turn on Anonymous Access 5

Ok, its not really a branding tip, but I’m on a roll here. In SharePoint 2010 if you want to setup your site to allow anonymous visitors, the process is much like it is in SharePoint 2007 except that the ribbon is now part of of the process. While I have really gotten used to the ribbon, this option I find particularly confusing. Just like in SharePoint 2007 the process begins in Central Administration, either you set the web application to Allow Anonymous access in the initial web application creation screen OR you need to set it afterward. If you are going to set it after, click on Manage Web Applications and select a web application from the list and take a look at the ribbon: You might be inclined to click Anonymous Policy as I was initially but this does NOT allow you to turn on Anonymous access. Instead click Authentication Providers: From this ...

SP2010 Branding Tip #8 – Alternate CSS can crash your site (until its fixed) 2

This is really less of a tip and more of a temporary gotcha that exists in most of the builds I have tried for SharePoint 2010. As I understand it, this problem won’t be fixed until AFTER the public beta that is scheduled to be released very very soon. When setting the Alternate CSS for your site, be very careful when using the Browse option: When you use this to select an Alternate CSS the setting will use a full URL like this: http://portal.contoso.com/Style Library/CustomStyle.css Unfortunately having the full URL really freaks out SharePoint 2010 (until they fix this) and it tries to use a malformed URL, which in turn breaks your site completely. This is the error that it will return: Cannot make a cache safe URL for “1033/styles/http://portal.contoso.com/Style Library/CustomStyle.css”, file not found. Please verify that the file exists under the layouts directory. As far as I can tell, if you do this to ...

SP2010 Branding Tip #7 – Using Simple Rendering in SharePoint Navigation 3

One of the really cool enhancements in SharePoint 2010 is the addition of the UseSimpleRendering property to the control. When UseSimpleRendering is set to True, the SharePoint navigation menu is rendered using a cleaner unordered HTML list. After some trial and error I was able to duplicate the current SharePoint 2007 top navigation for SharePoint911 using the Simple Rendering:     One last note, if all of this new cleaner HTML scares you and you don’t want to spend the time to convert your old CSS to work with the new Simple Rendering, you can always turn it off by setting UseSimpleRendering=”False” in the control. With this set to false, the old less clean Table based navigation is used and all of your old CSS styles should work perfectly in SharePoint 2010.