How to Group Library View by Content Type

When creating library views in SharePoint you might have noticed that you can group by virtually any field available in a certain document plus a whole host of SP specific fields such as ‘Checked Out To’ yet for some reason you can’t group by the Content Type of a document, theirs no obvious reason I can see why this would be the case but luckily there is a pretty simple workaround!

To do this will require SharePoint Designer which can be freely downloaded on the Microsoft site here. It’s also worth bearing in mind that this modification will be lost if the view is modified afterwards within SharePoint.

Grouping by Content Type

1. Create the view you want in SharePoint as you usually would setting the Group By property to something simple such as ‘Created’.

2. Save the view as per usual then you want to open the view in SharePoint Designer. The easiest way to do this is to open the Library tab at the top-left of SP then click the small drop-down right of the Modify View button as shown below.

ModifyView3. Click Modify in SharePoint Designer (Advanced) to open the view is Sp Designer.

4. You now want to find the code displayed in the image below, it is generally if not always found on line 33 and will usually require scrolling right so see.

Capture

5. Now modify the Name=”Created” part of the code so it reads Name=”ContentType”.

6. Save the view by clicking the save button in SP Designer or simply pressing CTRL + S on your keyboard then close the designer.

7. Refresh the view in SharePoint and it should now be grouping all documents by their Content Types as shown below.categoryview

5 thoughts on “How to Group Library View by Content Type

    1. Hey Valmeekeshwar,
      I’m glad I could help, if there’s anything you’d like me to cover or if I’ve missed any mistakes in my articles don’t hesitate to get in touch. I’d love to get some feedback.

      Like

  1. Hmm it appears like your blog ate my first comment (it was super
    long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly
    enjoying your blog. I too am an aspiring blog blogger but
    I’m still new to everything. Do you have any recommendations for
    novice blog writers? I’d genuinely appreciate it.

    Like

    1. In honesty just write about whatever interests you, others are bound to have the same interest and if it’s something you genuinely enjoy then it’s something you’re likely to continue.

      Like

  2. I believe this is among the so much important info for me.
    And i am glad reading your article. But shouuld tatement on few basic things, The sitte style is great, the artickes is in point of
    fact great : D. Just right task, cheers

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s