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

The idea is to use SharePoint Blog site as news site. Every new post has it's own pictures which users must see.

I found a great webpart (Mirata Picture Gallery) for displaying images from Photos blog library where I can specify library name and folder name which I want to show.

The question is: How I can add this webpart to be unique to every blog post?


share|improve this question

I think that the OOTB wiki pages will be better then blog. If I'm not wrong, in this case you can insert your web part in any part of the page.

share|improve this answer
I need to have comment possibility on every post we anounce so wiki site as our news site will not suite. – Daniel Badanjak Dec 13 '12 at 15:40
@DanielBadanjak, you can coppy wiki page layout, rename it and add comments to this layout. There are several options you can create your own controls or use something like this – Alexander Dec 13 '12 at 20:28

Open your post, goto the Site Actions menu, then Edit Page. You can then add web parts just like any other web part page.

share|improve this answer
I thought that too :) but the problem is that the same webpart instance is then on every blog post then. I need different webpart instances for every blog post. – Daniel Badanjak Dec 13 '12 at 20:44

There's a number of ways; create your own Site Template or use a code solution. Depending on your site (and if you already have sites deployed), code is the easiest way to do it; adding it as a 'stapler' event handler that will do the work when a site is created.

The process is simple: You simply open the site, get a reference to the web part (from the library), crack open the Post.aspx and insert the web part in the zone of your choice.

If interested, I'll post code solution.

David Sterling

share|improve this answer
Just so you have it, I've posted the code that'll save your a bunch of time: – David Sterling Dec 15 '12 at 2:21
FYI - you can modify the AddRatingsToBlogSite to do exactly what you want to - thank me later! – David Sterling Dec 15 '12 at 2:22
Hello, I managed to insert my Mirata Picture Gallery through Add Ratings To Blogsite solution but the problem is still same as I manually added web part to Blog Post page which @ng93 suggested. If I add webpart to post.aspx every post will have the same gallery including new ones. Maybe there is different blog post gallery sollution? – Daniel Badanjak Dec 17 '12 at 1:59

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.