Cloud and Microsoft technologies enthusiast architect in Switzerland RSS 2.0
# Thursday, October 06, 2011

<Disclaimer>This is personal notes of what I retained during the session. This can be incomplete, partially right or wrong. It is just part of the notes I took and what retained my attention. Nothing prevents the user to get more information on their favorite web site.</Disclaimer>

CQWP is part of the Publishing infrastructure and therefore of the SharePoint Server edition. It is used to rollup content, from a single list to a complete site collection. It allows to filter by content type.

About 60 properties and methods are available. CQWP can be exported, modified and imported again in a web part zone of a page.

When naming a column, avoid spaces and special characters. CommonViewFields specify the fields to request and that is where you specify the additional fields. QueryOverride bypasses limtes to query behavior imposed by the UI. WebsOverride makes the CQWP not recurse.

When selecting a site as a source, it will recurse, from that site, through all its subsites. In List Type, you select the list template you want to get the content from. It is also possible to filter based on the content type. It is also possible to filter on field values. AdditionalFilterFields can be used to go beyond the limit of 3 fields imposed by the UI.

It is possible to specify the CommonViewFields in two format : internal field name or added with the type separated by a comma. To represent a space use _x0020_ . To combine fields, separate them with a semicolumn.

DataColumnRename rename columns programatically and helps minimizing the XSLT.

Three XSL files : ContentQueryMain.xsl, ItemStyle.xsl and Header.xsl. All located in the Style Library\XSL Style Sheets. This last folder only exists if the Publishing feature is activated.

ContentQueryMain.xsl calls the Header and Item templates for each item. It receives all the content.

ItemStyle.xsl is applied to row items (Item Style in the UI)

Header.xsl contains the group styling (Group Style in the UI)

On pages, you can put some content that will actually not be displayed on the page when browsing, but will be when the CQWP rolls up the page.

It is recommended to not customize the out-of-the-box files, but rather make a copy and use it. When the CQWP takes the content that is HTML, the CQWP does not interpret the HTML.

Thursday, October 06, 2011 2:11:53 AM (GMT Daylight Time, UTC+01:00)  #    Comments [0] -
SPC11
Google Cloud Platform Certified Professional Cloud Architect
Ranked #1 as
French-speaking SharePoint
Community Influencer 2013
Navigation
Currently Reading :
I was there :
I was there :
I was exhibiting at :
I was there :
I was a speaker at :
I was a speaker at :
I was a speaker at
(January 2013 session):
I was a speaker at :
I was a speaker at :
United Nations (UN) SharePoint Event 2011
I was a speaker at :
I was there !
I was there !
I was there !
I was there !
Archive
<May 2021>
SunMonTueWedThuFriSat
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2021
Yves Peneveyre
Sign In
Statistics
Total Posts: 290
This Year: 0
This Month: 0
This Week: 0
Comments: 20
Themes
Pick a theme:
All Content © 2021, Yves Peneveyre
DasBlog theme 'Business' created by Christoph De Baene (delarou)