Page Layouts, Solutions and SharePoint Designer (Updated)

If you are deploying custom page layouts using a feature, DO NOT OPEN THEM IN SHAREPOINT DESIGNER! Not even once. Not just to “take a look”. Not for giggles.
Why? Because once you open that page layout in SharePoint Designer, it gets un-ghosted. This does two things. First, it means [...]

Filed under:sharepoint

Sharepoint Top Nav Dividers

In a client project I’m working on, the design calls for dividers in between each navigation link. No problem. Here’s the CSS:
.ms-topnav a
{
border-left-style:solid !important;
border-left-color:#fff !important;
border-left-width:1px !important;
padding: 0 10px 0 10px;

}

However, this leaves the border on the first element of the navigation, which we don’t want. There’s no way to select that [...]

Filed under:sharepoint

Sharepoint base css

Here’s a simple stylesheet that I’m going to start using as a basis for customizing all of my Sharepoint team sites.

/* Top Bar */
.ms-globalbreadcrumb
{
background-color:#7caf72;
}

/* Header */
.ms-globalTitleArea
{
background:none !important;
}

/* Navigation */
.ms-bannerContainer, .ms-pagemargin, .ms-navframe, .ms-leftareacell
{
background:none !important;
}
.ms-nav
{
background-image:none !important;
}
.ms-topnavContainer, .ms-topnavselected, .ms-topnav {
border: none;
background: none;

}

table.ms-topnavselected, table.ms-topnav {
height: 30px;
margin-left: 1px;
margin-right: 1px;
}
.ms-topnavContainer div
{
background-color:transparent !important;
}
.ms-topNavFlyOuts, .ms-topNavFlyOuts a:link
{
background-color:transparent !important;
}
/* Body */
body {
text-align: center;
margin: 0px [...]

Filed under:sharepoint

Configuring and Deploying Anonymous Publishing Sites for SharePoint Server 2007

Helpful article just posted:
http://msdn.microsoft.com/en-us/library/dd638968.aspx

Filed under:sharepoint

Handy Regular Expressions

While working on a Sharepoint css file, I was able to use a nift regex instead of copying and pasting all over the place.
The tag I had looked like this:
#MSOZoneCell_WebPartWPQ4 td h3 a
I wanted to add a tag on the end so that it looked like this:
#MSOZoneCell_WebPartWPQ4 td h3 a, #MSOZoneCell_WebPartWPQ5 td h3 a
I used [...]

Filed under:Regex, job, sharepoint

SharePoint Webpart Styling

I always wondered how to style a single webpart on the page.
http://www.heathersolomon.com/blog/articles/Controlling-Single-Web-Parts-with-CSS.aspx
Been dealing with CSS for a long time and never knew about attribute selectors.  Only issue is you can’t be in Quirks mode, which does mess up the rendering of some elements in SharePoint.

Filed under:sharepoint

Sharepoint 2003 to 2007 Upgrade thoughts

I just completed a medium sized upgrade (83GB) for a client from Sharepoint 2003 to 2007 and thought I’d share a few things I took away from it:

You’re probably going to need to create a new Site Definition to map to the old one if the old one is customized at all
Set expectations with users [...]

Filed under:sharepoint