When you use grouping in list views SharePoint adds the somewhat redundant field name over and over again for each group heading.
Often the group field is pretty obvious. We really don’t need to see Color, Color, Color.
To fix this requires SharePoint Designer…
- Create the grouped view in the browser as usual
- Open the site in SharePoint Designer
- Find the view file: “yourname.aspx”
- Double-click the file to open it for editing
- Display the Code view of the file
- Search for GroupByField
- Delete all of this text:
<GetVar Name="GroupByField" HTMLEncode="TRUE"/><HTML><![CDATA[</a> :&nbsp;]]></HTML> - Display the Design view and confirm that the change is what you wanted.
- Save the file
- Test in the site in the browser
Notes:
- Make sure you get all of the text above, and no more.
- This will remove all group by headings in the view. You can’t remove just one level.
- Using SharePoint Designer is always at your own risk! :-)
- Remember that you can always right-click an edited file in the folder list and select “Reset to site definition” to undo all of your changes.
- And finally, this is just a view. You can always delete it are start over.
The result should look like this:
.
add this site to your Live Favorites
2 comments:
I did a global search on the view page for the "GroupByField" field that you reference but I'm not able to find any references to it.
David,
Did you setup a view with grouping, then do the search from within the Code view of the page (the grouped view) in SharePoint Designer? The GroupByField will not show up in the source of the page delivered to the browser.
Mike
Post a Comment