How to add extra fields to your CQWP that dont display as standard

By peter.stilgoe









1) Export your Content Query Web part to your desktop

2) Open it with Notepad and look for the following line of code:

3) Change this line to the following, and replace the portion MYINTERNALCOUMNNAME with the internal column name for your column

4) Save your file

5) Import the web part

- Edit page
- Add Web Parts
- Switch to advanced
- Switch from browse to import
- Browse to your file and upload you file

Now when you go to apply a filter, you will see your custom column.

Share

,

About... peter.stilgoe

peter.stilgoeThis author published 482 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

2 Comments

  • At 2010.10.27 22:43, Dave said:

    how do I add an additional dropdown for additional filter fields? CQWP only gives you 3.

    [Reply]





    peter.stilgoe

    peter.stilgoe Reply:

    You cant do this OOTB, I think probably from a performance issue they limited to 3, you would either have to look at writing your own webpart or take a look at http://www.lightningtools.com/pages/lightning-conductor-web-part.aspx

    Alternatively you could use a DVWP to filter by more than 3 columns….

    [Reply]





    (Required)
    (Required, will not be published)