Content Query Web Part, Target Audiences, Additional Filters

Running MOSS 2007 SP1 with infrastructure updates. Have defined various audiences including one “New Products”. All normal targeting of content using the CQWP is working fine and as expected, however…

On one page we want to show all articles where the target audience includes “New Products”, regardless of whether or not the user is actually in that audience. The CQWP appears to let you do this, by

  • Selecting the content type we wish to show, as normal
  • Not selecting “Apply audience filtering”
  • In the “Additional Filters” section, under “Show items when” selecting “Target Audiences” from the dropdown, selecting “is equal to” or “contains”, and then putting in the name of the audience, “New Products” in my case.

However the bad news is that it simply doesn’t work. No items are ever returned with the filter set.

Back to the PointBeyond website

2 Responses to “Content Query Web Part, Target Audiences, Additional Filters”


  1. 1 Adam April 4, 2010 at 10:26 am

    Could it be that the target audience names operate under it’s GUID rather than it’s display name?

    If you choose to display the target audience through the CQWP along with the title and description, it is displayed as a GUID. I’m guessing that this is the format which the filter would recognise.

    I could be wrong however but defiantly worth a try…

  2. 2 Jason May 17, 2011 at 6:04 am

    I use the Audience GUID, minus its enclosing braces, with a “contains” clause.

    Works fine.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s





Follow

Get every new post delivered to your Inbox.

Join 279 other followers