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 stuck with the following problem. I have a Sharepoint Sandbox Solutions project. On the main page there's a list "Artists" with URLs that direct to the proper Artist Page. Those artist pages are created with an event receiver

Bob Marley -
Jack White -
And so on

These artistpages have a document library filled with documents. On the same main page mentioned above there's also a list with links to Festivals. Each of these festivals has artists performing on it. For each artist in a Festival, an event receiver creates a specific artist page for that artist under a Festival.

Bob Marley on Woodstock -
Jack White on Woodstock -

The problem is: I want to use something like a content query or content search webpart to link the docs of to But this needs to be done automatically. So in the template of Bob Marley under Woodstock there has to be a webpart that knows it's on the Bob Marley page and can lookup the docs that are in the Bob Marley site in

How can I accomplish this. I have tried to use the ListViewByQuery webpart but this approach didn't worked under Sandbox Solutions. Please Help!

share|improve this question
up vote 1 down vote accepted

You can use PageFieldValue as a filter in a CQWP so when you create your page then set a field value to your artist then in your CQWP you would use:


Another possibility to consider is to have a single page that is driven by a parameter rather than create a new page for each artist.


You can then have multiple web parts on the page that use the query string value as a filter. In your CQWP you would use:

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.