sharepointweb-partssharepoint-2007cqwp

How to filter a MOSS2007 Content Query Web Part using a custom column?


I am trying to setup a content query web part in MOSS that will display documents on a page based on a choice column that I created. I have created a "Page" column and added it as a core document column for my site. What I would like the CQWP to do is filter the document list that is displayed based on this Page column. However, this column does not show up as a filter in the CQWP on the page. I tried following the instructions in this question: Content Query WebPart - Grouping by custom column? to no avail. Does anyone have any ideas as to how I can accomplish this?


Solution

  • Have you tried CommonViewFields as suggested in the second answer from that other question? You can edit the property in SharePoint Designer or by exporting the web part, changing the CommonViewFields in Notepad, and then re-importing the web part. If CommonViewFields doesn't work, you can always modify the filter property directly in either SPD or using export-Notepad-import. Be sure you are pointing to a Content Type that includes your custom field.