Logo Microsoft SharePoint 2010

The SharePoint 2010 Content Query WebPart have this new feature the Content to Content concept.

Content to Content introduces two tokens that can be used in the Content Query Web Part filters:

  • The PageQueryString token allows you to include in the query a valuefrom a query string parameter.
    • You have use the token [PageQueryString:PARAMETERNAME] in the CQWP filters and the CQWP will replace this token with the value of the specified query parameter. (The value of the PageQueryString property must be the exact name of the URL parameter)
  • The PageFieldValue token gives you thepossibility to filter the query results using a value of another field on thesame page.
    • You have use the token [PageFieldValue:FIELDNAME] in the CQWP filters and the CQWP will replace this token with the value of the specified field.

This makes it extremely easy to provide functionality such as related content.

Another interesting new feature is the possibility to add new Fields To Display just by adding the to the XSL used in the CQWP, see this post on Liam Cleary blog.

LEAVE A REPLY

Please enter your comment!
Please enter your name here