Filtering in the CQWP webpart

Wortell, 20 april 2010

For a client I was setting up a FAQ section. Each question is its own page with a publishing page layout and content type attached. The client’s request was that each page include a list of related questions. As each question has a managed metadata field called “FAQ Category”, this shouldn’t be much of a problem – and it wasn’t!

I did the following:

1. Place a content query webpart on the page layout.
2. Configure the content query webpart as normal
3. Set up the filtering:

CQWP Filter

Note that it is possible to filter using the value of a field on the current page and/or using a query string variable (e.g. default.aspx?value=y).

Note: this only appears to work for managed metadata fields – when I tried it on normal single line of text fields, this extra option didn’t appear. And when I tried telling it to use [PageFieldValue: fieldname] as a filter value, the CQWP couldn’t be rendered.

Categorieën: Nieuws
Tags:
13 mei 2010 keren

Hi, i was just test a quite similar solution today!it didn’t work so i’ll be glad to get more details.
i want to use that method to display a filtered view of a document library, when each site display only the documents which related to the site subject. the documents has a managed metadata column which contain the subject. i try to define the subject of the site by adding the managed metadata column to the page layout (custom content type).

13 mei 2010 keren

the main question is how to add the field to the page, and what is the exact definition should be done in the CQWP?

17 mei 2010 Hannah Swain

You can add the managed metadata field (also known as a taxonomy field) to a page layout in SharePoint Designer the same way you’d add any field control.

Watch out – the taxonomy field control requires a reference to the taxonomy assembly to work – there’s an excellent article at http://underthehood.ironworks.com/2010/03/sharepoint-2010-how-tos-embedding-managed-metadata-page-fields-in-your-page-layouts.html.

I’ll follow up with another article on how to actually realize the entire content query webpart soon.

28 mei 2010 FAQ with out of the box CQWP in SharePoint 2010 « Wortell weblog

[...] have been a number of questions about one of my previous posts concerning filtering in the CQWP (content query webpart) in SharePoint 2010. In this follow up post, I will explain the entire case [...]

5 september 2010 westly

Hi,
Have you tried this in content deployment scenarion?
Does the content query return results when no managed metadata service is attached to its context?

Thanks

Geef een reactie

Jouw e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

*

De volgende HTML tags en attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Categories

  • Tags

  • Blog Authors

    Amy
    anita
    Anneke
    Danny Burlage
    Dennis Vendel
    Freek Berson
    Gerard
    Iris
    Jasper Oosterveld
    Jean-Claude Chan
    Jorn
    Lab Chicks
    Luc Joziasse
    Maarten van Noort
    Maarten Wijsman
    Marlon
    Martijn Bellaard
    Natasja van Doorn
    Paul Pascha
    Peter Heuvelman
    Rick Slager
    Robert van Son
    Roel
    Roeland Jimenez
    SanderZ
    Sjoerd Schudde
    Stefan van der Wiele
    Tim Heuperman
    Wortell
  • Archief