5/07/2012

SharePoint 2010, the Content Editor Web Part, and Broken Views…

 

The following is an excerpt from chapter 7 of my book SharePoint 2007 and 2010 Customization for the Site Owner. I keep getting questions on this so I thought I’d post it here. (You should still by the book!)

 

Adding a Content Editor Web Part to a view page like "Allitems.aspx" is a great way of customizing list and library views in SharePoint 2007. This generally had no negative impact, was easy to do and produced some major improvements with little work.

The Problem in 2010?

SharePoint 2010 treats view pages with added web parts as non-views and removes many view related features. I.e. adding a web part to a view breaks some things…

Here's a typical Task list All Tasks ("Allitems.aspx") view with the view menu clicked:

  image

Note these features:

  • The name of the view is displayed: Subsite 3 > Tasks > All Tasks
  • There are ribbon tabs for Browse, Items and List (or for a library, Documents and Library)
  • There is a dropdown arrow after "All Tasks" in the crumb trail

Here is the same view after the addition of a Content Editor Web Part (and the JavaScript to color code the task list):

  image

Note what's missing:

  • The name of the view in the crumb trail is missing
  • The ribbon tabs for Items and List are missing
  • The dropdown arrow after "All Tasks" in the crumb trail is missing
  • You can still get to the ribbon tabs, but you have to first click a row in the list:

        image

 

The Fix?

Don't add web parts to a 2010 view! (Duh) Instead, edit the page using SharePoint Designer 2010 and add your JavaScript code between the end tag for the Web Part Zone and the end tag for the PlaceHolderMain content tag.

    image

You can either embed the JavaScript:

    <script type="text/javascript">
        // js code here
    </script>

Or you can link to a text file with the JavaScript that you've uploaded to a library:

    <script src="../../SitePages/ColorCodedTaskList.txt" type="text/javascript"></script>

 

.

5/04/2012

SharePoint Governance Training

 

Creating a SharePoint governance plan, correctly, can be a real challenge as SharePoint governance is only partially about SharePoint. Because SharePoint is (too) easy to use it attracts content, user, compliance and best practices problems. Without a plan… well you know what you’ve got.

There are several approaches to creating your governance plan. One is to download one of the sample plans and do a little quick editing, and call it done! The second is to pay a consultant to write one for you, copied from their generic templates, which you can then file away and call it done. The third is to attend training to learn how you can create a proper plan unique to your company. The training I offer through MAX Technical Training is available in two formats, private training for your team, and public training. Which is best? I would recommend both. Ideally your future governance team leader(s) would first attend a public class. There they would discover the full scope of governance and learn about the issues and concerns from the other attendees, things that they had never considered . After the public training they would know enough about governance to assemble a proper governance team and schedule a private training / consulting session to start writing a proper governance plan.

The next public class is next week and there are still openings available. This is your opportunity to both discover the full scope of SharePoint content and user governance, and to learn from the experiences of other governance teams.

The next class is Thursday, May 10th, 2012 at MAX Technical Training.

MA-1040 - SharePoint Governance 2007 and 2010
http://www.maxtrain.com/Classes/ClassInfo.aspx?Id=741

For information about private governance team training contact MAX at 1-513-322-8888.

 

.

4/30/2012

Cincinnati and Dayton SharePoint User Group May Meetings

 

Cincinnati SharePoint User Group

http://www.CincinnatiSPUG.org

Thursday, May 3rd, 2012, 6:30 PM (Pizza and networking at 6:00)

This month's presentation:

How many web applications do I need? Why?
Speaker: Shane Young, SharePoint Server MVP

In this session we will talk about web applications and how with proper planning they make life easier for your users, not harder as often assumed. From web applications we will also drill into site collections and why they should be the center of your universe. Quotas? Yeah! We need talk about them. Another key element will be branding. And finally we will sprinkle in some ideas how all of this will make having a governance plan easier. So come to this session and bring your questions. I like questions!   :-)

 

Dayton SharePoint User Group

http://www.dayspug.org

Tuesday, April 10, 2012

This month's presentation:

SharePoint Diagnostics

Riverbed will discuss how to solve the latency issues/bandwidth constraints associated with accessing SharePoint files or portals over the WAN, or even the individual remote user who needs to access large files quickly.

Social Event and Food:  6:00 p.m. until 6:30 p.m.

Announcements/Sponsors:  6:30 p.m. until 6:45 p.m.

Main Presentation:  6:45 p.m. until 8:00 p.m.

4/20/2012

SharePoint Saturdays in Dayton and Cincinnati

 

SharePoint Saturday Dayton


June 30th, 2012

  • Call for sponsors! (almost over!)
  • Call for speakers! (until May 4th)
  • Registration is now open!

http://www.sharepointsaturday.org/dayton

Follow on Twitter: @SPSDayton

 

SharePoint Saturday Cincinnati


October 27th, 2012

Follow on Twitter:  #SPSCincinnati

http://www.sharepointsaturday.org/cincinnati

 

.

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.