Bulk Publishing in SharePoint 2010

I ran across a situation today where I realized that I just moved over a ton of documents to a new site, but the main users of the site could not see any of the new content.

After scratching my head for a minute I did some research and found out that I had my document library settings configured to where only contributors could see minor versions of documents. Oh yeah! So for short term I enabled all readers of a site to see major and minor versions of documents in this site, but it got me thinking. What if I needed to publish a bunch of different documents in a bunch of sites quickly?

That’s is how I stumbled upon the following project on CodePlex.

PublishSPContent

What this script allows you to do is script the ability to automatically publish content you may have on SharePoint sites and sub sites that is sitting out there waiting to go live for the majority of the users on your sites.

There are various ways to shrink and expand the function of this script, but all in all I think it is very handy. The alternative for me in this case would have been going crazy after having to publish the 137th document in a row.

Thanks to YoJoshi for creating this project! I will definitely be following it.

Advertisements

Granting SharePoint 2010 contribute permissions, but with a catch…

Today I was able to help solve a nagging issue in SharePoint 2010 (only with the help of @CHR1SVAUGHN btw…) that a group of us at my work had been battling a long time with. We love giving users the ability to collaborate with SharePoint, but it then becomes a struggle to attempt to have any governance over your setup and keep a standard theme without a group of users wanting to change the look and feel of their site.

The solution we found was good, because it is (I think) simple. In order to keep the same look and feel on our sites, but allow users to collaborate, we navigate to the site collection in question (in this case a department site). Next we move into the site pages library and break permissions from the site collection and set all groups in the site collection to only be able to read this site pages library. Giving them access, but not the ability to change it.

So far it has worked like a charm and the users can contribute what they need, but they see this on the site page so we can control the look and the feel of the site:

NoEditRibbon

Hopefully this will take and we can keep our sanity with the look and feel. If you have a similar story where you have done something similar, I would like to hear it. You can find me @bjfentress on twitter or leave a comment below.

Thanks!

B.J.

Add .csv image to SharePoint 2010

As I was researching for a way to do this I ran across several blogs that told me how to add an image for a .csv icon to show up under SharePoint 2010.

Here’s one that I really liked:

http://www.sharepointedutech.com/2010/02/17/changing-file-associations-icons-in-sharepoint-2010/

(Dave Coleman is awesome BTW)

Which the process here can pretty much be copied with any file extension type you want to connect with any other icon. Dave does a great job explaining this.

So I was originally looking for a way to map the .csv icon here to map to the icon that normal shows up when you save a .csv under excel.

I found out (to my surprise) that if you look under the images folder at:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\IMAGES

There actually is an image of a .csv (csv16.gif) there, it’s just not associated with anything.

So in order to hook this bad boy up to SharePoint we need to go into:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\XML

and add:

<Mapping Key="csv" Value="csv16.gif" OpenControl=""/>

under the heading <ByExtension> and directly under the entry:

<Mapping Key="css" Value="iccss.gif" OpenControl=""/>

Then do an IIS Reset and upload a .csv file to test it out and see if it works. I have confirmed that this file does exist for both Foundations and SharePoint Server 2010.

Enjoy and happy SharePointing