All posts tagged SharePoint Server 2010

Adding Links to Site Settings

In part 1 I covered Adding Links to Central Administration but now it’s time to take a look at how I added links to the site settings screen for my CodePlex creation SharePoint 2010 Site Styles. Note that the process is almost identical.

So the final goal is something that looks like this:

Just like part 1 this solution uses feature activation (no code required) to make this happen. Here we go! Continue reading →

Cleaning up Multi Choice fields in Content Query Web Part

I recently had to put together a Content Query Web Part that displayed a multiple choice field. By default the multiple choice field displays delimited with “;#”. Additionally sometimes you will find this combination of characters on the beginning and the ending of the string. Here is my XSLT template to clean up the choice field and substitute your replacement characters. Additionally I split out some of the supporting templates as they are very useful on their own.

Usage

<xsl:variable name="CleanFieldValue">
     <xsl:call -template name="cleanMultiChoice">
          <xsl:with -param name="choiceValue" select="@FieldValue"></xsl:with>
     </xsl:call>
</xsl:variable>
 
<xsl:call -template name="replaceCharsInString">
     <xsl:with -param name="stringIn" select="$CleanFieldValue"></xsl:with>
     <xsl:with -param name="charsIn" select="';#'"></xsl:with>
     <xsl:with -param name="charsOut" select="', '"></xsl:with>
</xsl:call>

Continue reading →

Adding Links to Central Administration

This is part 1 of a series regarding my recent CodePlex addition SharePoint 2010 Site Styles. I’ve decided to blog on 4 of the concepts that I used in creating the add-on. These are topics that have been blogged about before but hopefully relating to a real working code base will provide some additional value.

The goal is to get some new links to appear within Central Administration. The finished product looks like this:
Continue reading →

Sysprepped SharePoint 2010 Development Image

SharePoint 2010 is here and it’s time to do things right this time around. To me, doing it right means that everything I do should be reusable. Those reusable components may be for our internal developers or it may be something that the sales team can run with but either way that’s the goal.

The requirements

When it came time to put together the image that would be reused for all the developers across the company we needed a solution a little bit more robust then the solution we used for SharePoint 2007. Below are some of our requirements:

  1. Consistent installations between environments
  2. Follow best practices where possible (development environments historically break this rule for ease of use)
  3. Unique computer name for each person to avoid network collisions
  4. Automated installation to allow for quick spin up of development environments
  5. Should use VMware (We recently transitioned everything from Virtual PC to VMware due to 64bit requirements)

In addition to these requirements we also put in place some new machine requirements for all developers. At a high level this includes 8 GB of ram and quad core processors. The developer has input for the remaining specs. Continue reading →

SharePoint 2010 Site Styles is out!

I’ve been busy lately developing my first full codeplex project. I now feel good enough about that process to have released a version on CodePlex earlier today. So say hello to SharePoint 2010 Site Styles.

Now you may be asking yourself…

What is this and why did you build it?

So with the release of SharePoint 2010 Microsoft decided that the concept of themes should be reworked within SharePoint, and they definitely needed it. So now themes allow you to modify the color and font scheme of any SharePoint site either through the browser or even through Office applications such as PowerPoint and by doing so you can produce a theme file with a .thmx format. This has made sharing, deploying and creating themes extremely easy.

But… what if you wanted to deploy your own custom CSS or your own custom images? Well, you can do one of the following:

  1. Create your own master page and add your CSS.
  2. Modify the master page through SharePoint designer and add your CSS.
  3. Add your CSS in through a web part or other element.
  4. Turn on publishing and set the alternate CSS file.
  5. Create a Control Template that’s feature activated to embed your custom CSS file into the page.

Ok, so now you read through that list and realize that only option 5 has any merit what-so-ever because the rest either require publishing or are not deployable/reusable. Continue reading →

SharePoint Saturday Tampa Slides

I’ve uploaded the slides from my presentation at SharePoint Saturday Tampa to Slide Share for anyone interested. Feel free to learn more about leveraging the ribbon API and dialog framework. If you have any questions or comments feel free to shoot me a message via the contact form. I’m currently working on cleaning up the code that I demo’d during the presentation and will be releasing it in a series of blog posts about the subject. If you would like a copy in the mean time shoot me an email and I’ll be happy to send it to you.