Browsed by
Tag: SharePoint

Writing to the ULS in SharePoint 2010

Writing to the ULS in SharePoint 2010

Here’s a quick, easy, 3 step method to log your custom events to the ULS while writing a SharePoint 2010 solution: Add a reference to Microsoft.Office.Server (located in C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14ISAPI on your SharePoint server) Add a using statement at the top of your code like so: using Microsoft.Office.Server.Diagnostics; Add the following line wherever you want the message to appear in the ULS PortalLog.LogString(<whatever you want to put in the ULS>) See? That wasn’t so bad!

Hiding View All Site Content and Recycle Bin in SharePoint 2010

Hiding View All Site Content and Recycle Bin in SharePoint 2010

I found a lot of resources online that explain many different ways of doing this, lots of comments saying it worked for them, none of which worked for me.  I even found a tutorial online that explained how to do this using a custom permission, which works, but not when the same users have to have different permissions to underlying objects in the site.  So here’s a method that works at the Master Page level, is customizable, and doesn’t affect…

Read More Read More

Delete multiple web parts at the same time in SharePoint 2010

Delete multiple web parts at the same time in SharePoint 2010

This is a quick one…if you ever have multiple web parts on a single SharePoint website, and you want to manage or delete more than one at a time, or even just see which web parts were added to a website beyond the default content of the template, add the following (in bold) after the URL in the active window: http://server/site/page.aspx?contents=1 This is cool!  Check the boxes of the ones you want to delete/manage, etc.  Enjoy!

SharePoint 2010 Workflow Status filtering

SharePoint 2010 Workflow Status filtering

Since MOSS 2007, SharePoint workflow statuses display with a text value such as “Canceled”, “Completed” or “In Progress”, but behind the scenes are stored as a key with an integer value.  So in a view when you want to filter based on the workflow status you must use this key value, and not the display text. As an example, here’s what the Filtering section would look like if I were filtering out items where the workflow status were either “Completed”…

Read More Read More

Customizing the Request Access page in SharePoint 2010

Customizing the Request Access page in SharePoint 2010

Our organization, like many others, handles access requests for all applications through our IT Support desk. Additionally, documentation is required and must be approved by the user’s department manager before the access can be granted. After just recently migrating the entire company’s intranet over to SharePoint 2010, I wanted to allow users to request access, so I made sure the Manage Access Requests was selected by default for all resources. However, within a week of moving it over I’m getting…

Read More Read More