0

I am using a Content Query Web Part to display Blog posts on my homepage(a publishing site). My question is how can I

  1. Compose my post URL to point to another sub-site(a publishing site also) and make the post content be displayed in a content query web part.
  2. Use the Content Query Web Part pick the post_id from the URL

E.g user clicks on this url

        <a href="http://domain/publishingsubsite?post_id=4">Read More</a>

The post_id is picked by my sub-site and displayed with a content query webpart

2 Answers 2

0

You can filter Content Query WebPart using Query String (in your case post_id)

For that

  1. Edit the webpart and in the Additional Filters section.
  2. Add a filter which says "ID" is equal to [PageQueryString: post_id]
  3. Save and stop editing the page
3
0

I was able to do this by following the tutorial link pasted below

http://www.bjw.co.nz/developer/sharepoint-2010/1174-how-to-display-a-single-list-item-on-a-sharepoint-page

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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