Skip to main content

Content Query WebPart (CQWP) in SharePoint 2010

The Content Query Web Part is a tool that site designers can use to aggregate interesting and relevant slices of information on web page by letting you build queries through an easy to use UI and then display that content in unique, configurable ways.



The CQWP is designed to return roll-up content over several different scopes, anywhere from a single a list or library, to all lists or libraries across an entire Site Collection.  In SharePoint 2010, the CQWP single list query is also optimized to work over large single libraries, taking advantage of smart indices and other tools designed to improve query performance over large document libraries.

Content Query WebPart comes first in MOSS 2007, but in SharePoint 2010 there are some new features introduced.Content Query Web Part (CQWP) is used to show information from sites in the current site collection by querying, filtering, and sorting the content. Also CQWP you can show information from list as well as from publishing pages. But to use CQWP publishing features need to be enabled.

To add a content Query Web Part (CQWP) Click on Edit Page -> From Editing Tools Select Insert -> Web Part -> Select Content Roolup Categories and then Select Content Query WebPart.


Once you add the content Query WebPart you can click on open the tool pane to configure the web part. When you click on this link the Content Query window will open as shown figure below.


 From the Query section you can select to show items from all site in the current site collection or can browse the particular site or subsite or we can select the list as shown below figure.




In the Presentation tab you can Sort items, Give Styles as shown below fig. You can directly select which fields you want to display rather writing any XSLT for this purpose.



There is one new token  [PageQueryString:PARAMETERNAME] is available to handle Query String parameters. You can use this token in the Additional filers section where you can also filter on different conditions. You can see the pics below:




Also in SharePoint 2010 there is another token available: PageFieldValue which is used to filter that matches the value of another field on the same page only. [PageFieldValue:FIELDNAME] is the syntax to use this token.



That's it.

Comments

  1. If a nаtural ԁisаsteг strikeѕ, are you prеparеԁ for
    іt? If the ansωer is no, take a
    lоok аt this fгee guide on ѕurviѵal аt http://survive.

    top-informаtіοn.net/
    Stop by my web site heartdata.net

    ReplyDelete
  2. Rank уour Yоutubе Vіdеοs at http://youtuberanking.
    tοp-information.net/ -> Јust $5 a Video!
    Also visit my blog post : howtoluciddreamtonightguide.com

    ReplyDelete
  3. A high quality cаmегa fог a veгу attгаctivе price or
    just а bаd qualіty ρicture?
    Dіscоver on thе full revіew at http:
    //гeѵiews.top-informatiοn.
    net/cаnon-poweгshοt-sx50-hѕ-reviеw/
    my site - Stage 4 Kidney Disease

    ReplyDelete
  4. Having trouble lоsing weight? How abοut taκing а look аt what
    is сonsidered tо bе а fаt burnеr in a bottle?
    Check our guiԁe οn hοω to use Rаpberry Ketoneѕ аnd get them for the best price аt http://гaѕpberгyketones.
    heaгtdata.nеt/
    Feel free to surf my page ... buycoolfishtanks.com

    ReplyDelete
  5. I sаvour, leаԁ to I found exасtly what ӏ waѕ taking a lοok for.

    Үou havе еnded mу four day lengthy
    hunt! God Blеss уou man. Havе a great daу.
    Byе

    Feel free tο suгf to my wеbpage vida vacations

    ReplyDelete
  6. fantastic points altogether, you just received a new reader.

    What could you recommend about your post that you simply made a few
    days ago? Any positive?

    Visit my page ... healthy diet plans

    ReplyDelete
  7. you're truly a just right webmaster. The web site loading velocity is incredible. It kind of feels that you are doing any distinctive trick. In addition, The contents are masterwork. you have performed a magnificent job in this topic!

    Here is my webpage - raspberry ketone diet

    ReplyDelete
  8. It's actually very complex in this active life to listen news on Television, so I simply use the web for that purpose, and get the hottest information.

    Have a look at my homepage; lloyd irvin

    ReplyDelete
  9. Ahaa, itѕ gοod ԁialοgue cоncerning this ρiece of wгitіng at this place at thiѕ webpаgе, I havе read all that, so at thіѕ timе me alѕo cοmmentіng here.


    My web sіte :: online reputation management service

    ReplyDelete
  10. Human studіes haνe shown to pгοteсt DNA fгom ԁamаge and іncrеases the immune гesροnѕe.
    It dоesn't just help your skin when you apply it directly. The plan allows an unlimited number of fruit and vegetable servings.

    Also visit my weblog - healthy diets

    ReplyDelete

Post a Comment

Popular posts from this blog

Tab Control in Asp.Net

Scenerio: I need your help in designing tab control in   asp.net .My requirement is I need a tab control in   asp.net (C#) like  for example goto my computer ,right click c drive and select properties.we get tabs like general,security etc....... like that i need to design one tab control(no need of any rightclick) in my web page and the database table columns should come as tabs and inseide the tab data of that particular column should come.   Example:Employee master tab1:Employee name.........his name in the tab tab2:Age.............his age tab3:Address........his address   Solution:   You can do this using a simple div <style type="text/css"> .tabs         {             position: relative;             height: 20px;             margin: 0;   ...

AI and Microsoft: Revolutionizing Efficiency in Nonprofit Organizations

  How AI and Microsoft Enhance Efficiency in Nonprofit Organizations In today’s fast-paced world, nonprofit organizations face unique challenges—limited resources, increasing demands, and the constant need to do more with less. But what if technology could be the game-changer they need? In my latest research paper,  "How AI and Microsoft Enhance Efficiency in Nonprofit Organizations" , I explore how cutting-edge technologies like Artificial Intelligence (AI) and Microsoft’s innovative tools are revolutionizing the way nonprofits operate. From streamlining administrative tasks to enhancing donor engagement and optimizing resource allocation, AI and Microsoft’s solutions are empowering nonprofits to focus on what truly matters—their mission. This paper dives deep into real-world examples, practical applications, and the transformative potential of these technologies. Whether you’re a nonprofit professional, a tech enthusiast, or simply curious about the intersection of technolo...

Social tagging overview in Sharepoint 2010

A tag is a word or phrase that identifies an individual piece of information according to a set of attributes or criteria. Tags make it easy to find and share information about a specific subject or task. Social tagging helps users categorize information in ways that are meaningful to them. Social tagging can improve the quality of search results by filtering against specific tags, and it can also connect individuals who want to share information with other users who have like interests. This article describes the social tagging features in Microsoft SharePoint Server 2010. This article does not describe how to configure social tagging features. It also does not discuss how to implement social tagging features as part of an overall social media strategy for an enterprise. About using social tagging features Social tagging features help users to share information and to retrieve relevant, high-quality content more efficiently. Such sharing encourages collaboration and b...