Sharepoint 2010: Group by content type or filter by content type

By peter.stilgoe









For some strange reason MS have stopped you from being allowed to group & filter by content type in Sharepoint 2010 views which seems really odd?

I have searched the web and cant find an answer, if anyone knows Id be grateful if they could share this, Im guessing its something to do with the content type hub & changes have had to be made to accomodate this in 2010, cant think of any other logical reason!

Share

, ,

About... peter.stilgoe

peter.stilgoeThis author published 497 posts in this site.
Sharepoint, InfoPath, K2, Nintex, Business Process Mapping, Business Intelligence, Automation, ECM, Document Management, Document Imaging, Internet Marketing & Online Business Consultant Email / MSN: pstilgoe@hotmail.com LinkedIn: Pete Stilgoe - Sharepoint Consultant









Share

FacebookTwitterEmailWindows LiveTechnoratiDeliciousDiggStumbleponMyspaceLikedin

3 Comments

  • At 2011.02.15 23:39, maxine said:

    Hi,

    i’m assuming you are talking about Data Views in SP designer 2010. there seams to be a few solutions out there, one creating a SOAP service, which is painful.

    i have also created a view in the browser, filtered by content type – then edited the view in SP designer – this then pre-populates the filter with the “contentType” field name – BUT if you make any changes to the view (or delete the wrong one) your in trouble…

    the other option that has worked for me is to use sharepoint designer to insert a data view on your document library, add a filter (any will be fine. then look at the code for data view, and you should see the “query” tags.

    <Query>
    <Where>
    <Eq>
    <FieldRef Name=”FieldName”/>
    <Value Type=”Computed”>MyVal</Value>
    </Eq>
    </Where>
    </Query>

    replace FieldName with “ContentType” and the content type will appear in the filter. it’s a bit of a hack – but seams to have the least side effects for me.

    [Reply]

    • [...] http://www.petestilgoe.com/2010/10/sharepoint-2010-group-by-content-type-view-by-content-type/ Categories: intranet, sharepoint, Sharepoint 2010 LikeBe the first to like this post. Commenti (0) Trackback (0) Lascia un commento Trackback [...]

      • At 2012.02.07 14:26, Sam said:

        God bless you maxine … your reply here saved me

        [Reply]

        (Required)
        (Required, will not be published)