SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a custom page layout that contains a CQWP that I'd like to display documents related to the page. The document library has a lookup column that relates to the page title in the Pages library. In the CQWP I've got a filter value of [PageFieldValue: Title].

I can't get the CQWP to display any documents. If I instead filter on a "Single Line of Text" field where I manually type the Page Title, it works fine, so I know it's not an issue with the filter value.

I assume the issue is that the lookup field is actually returning something like "1#;Page Title", but I don't know how to account for that in my filter.

share|improve this question
I appreciate it would mean adding another step but how about adding a topic column to your page library and using that to filter on instead? You could either create a separate lookup list and have both the page library and the document library lookup from this or use a term set. Another possibility is to add the Title as a URL parameter and filter with that instead? – Dave Paylor Mar 15 '13 at 22:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.