Zieglers

Just little about C#, .NET, SQL Server, SharePoint and SAP

Add Blog Posts web part to Team Site page

Posted by zieglers on March 5, 2009

the-computer-demands-a-blog

If you want to add posts web part to your team site – assuming that you have your blog site as subsite (named as “blog“) – you can do this as follows:

1. Create a doc library called Pages, default doc temlate is Web Part Page.
2. Create a page called Test.aspx.
3. Open Notepad, paste following web part code and save this code as Posts.webpart.

postswebpart

4. Change List ID for Posts list in blog site.
    Find 43EBBD67-B3EB-4D9F-89C7-B84520A40991 and replace with your blog site’s posts list id.

5. Then, go to your team site web part galleries and upload this Posts.webpart.

6. Add this web part to your Test.aspx.

Now you should be seeing Posts from blog site. 🙂

P.S. Before writing this reply, I tested above steps one by one myself and it’s working.
Let me know if you encounter any problems.

zieglers

Advertisements

11 Responses to “Add Blog Posts web part to Team Site page”

  1. eyeguynm said

    I downloaded your code, inserted the appropriate List ID from the “Post” list in my blog but I receive the following message: “Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Windows SharePoint Services-compatible HTML editor such as Microsoft Office SharePoint Designer. If the problem persists, contact your Web server administrator.”

    Do you have any suggestions? I’ve triple checked the List ID…

    Thanks!

    Curt

    • matsonpp said

      The reason you are getting this message is because this web part assumes your blog lives at the following EXACT location:

      http://server/blog

      In order to customize this web part to your site, you must modify the several instances of “/blog/” in the web part file.

      Do a find and replace for /blog/ and replace it with the SERVER RELATIVE link to your blog site.

      For example, my blog site is currently at:

      http://server/sites/project1/blog/

      Therefore, I will be replacing /blog/ with /sites/project1/blog/

      Hope this helps.

      Kind regards,
      MatsonPP

  2. Can you tell me how I find the “List ID for Posts list in blog site.” I’m just not sure where to look. The Post list’s settings? Somewhere in SharePoint Designer? If you could give me more of a clue, that would help me out. Thanks,

    Tom

  3. mwchc said

    I am trying to add a blog to a team site and am having trouble locating my blog’s site list id with the one in the post.webpart. Please help.

    PB

  4. m00nchester said

    Great post! I got this working with no problems following your concise instructions.

    One question though…

    I need to remove the categories from the post. When I delete the categories the webpart errors (although the blog site remains fully functional). I assume the webpart code can be changed to accomodate this? If you could advise on the change I would be most grateful!

    Thanks

    Rob

  5. traffic grab review…

    Add Blog Posts web part to Team Site page « Zieglers…

  6. I am so close to getting this to work!! I see the web part on the page and it’s showing the following line of info: Posted at by Schoelen, Coleen | Category: | Comments ()

    But, I don’t see the blog, and it’s not populating any information in the above fields…

    Any ideas what I am doing wrong?

  7. myvideo downloader…

    […]Add Blog Posts web part to Team Site page « Zieglers[…]…

  8. Great expectations

    Life is full of surprises, particularly if you are a newly – wed . Expressjodi you a glimpse into the future and tells how to be prepared to face married life

    Love is all about romance whereas marriage is a lot about responsibility. When two different individuals from different backgrounds live together, differences of opinion on things like spending habits, career, having and raising a baby, sharing household responsibilities etc, are bound to crop up, the key is to broaden your outlook and accept all the changes that marriage brings, and to remember that marriage is a momentous change for you and your spouse. And, fear not, over a period of time, you will find a way to make it work.

    Responsibility

    With marriage comes a whole lot of responsibility. “From the time you ger married, the decisions you make will not be yours alone, but your partner’s as well. This is because your choices will impact both of you. But this doesn’t mean that you’re tied to a ball and chain. “It only means you have a companion with you for life. In fact, in your capacity as a spouse, you become your partner’s caretaker, friend, confidante and even punching bag etc.

    Finances

    Arguments over money are bound to happen, so be prepared for it. And unless you establish some ground rules for dealing with financial issues, you will continue to have these arguments. Bear in mind that you are now a part of a unit, and no longer flying solo.

    In – laws or outlaws?

    if you thought that marriage is all about sharing your life with your significant other, think again, and this time, factor in your in – laws into the equation. When you’re used to a particular lifestyle, moving in with your in – laws can be a rude shock. You will be required to make changes in your daily routine. Like waking up a little earlier to help around the house or rescheduling your plans on weekends or even modifying some of your eating habits. these might seem like an additional burden, particularly if you are a working woman. Remember to keep an open mind when it comes to handling your in – laws. They may be rigid in their ways, but there is always a way to work out a compromise.

    Sharing space

    Marriage involves sharing everything – whether it is sadness or glad tidings, chores or finance, which can be a difficult task. This is why marriage necessitates an equal contribution from both side. ” Sharing is absolutely essential for a happy marriage,. Besides making it easier to run the show, it also brings you closer to your partner, and cement a bond in a way that only experience can.
    Differnces of opinion

    Shaadi brings two different individuals together, as well as two sets of arguments for everything. Remember that your husband is as new to the marriage and the relationship as you, and he is facing the same issue for the first time as well.Irrespective of the nature of the relationship, any two people are bound to have differences of opinion at some point of time, It is how you handle these differences that mtters. The best antidote for deviant interest lies in adapting to the situation. “Be carteful not to retaliate for the sake of it,”

    Planning for the future

    As a single independent working woman, you may be used to your lifestyle, going on holidays or splurging on the latest pair of Jimmy Choos. But married life is a journey and you need to plan carefully to get to your destination. “Planning is the key. Make sure you and your husband are on the same page as far as long – term goal are concerned,” “Whether or not you plan to have a baby or deciding on investments for the future and are thing that you should discuss in advbance, if you want to avoid unpleasant surprises in you married life,”

Leave a Reply

Please log in using one of these methods to post your comment:

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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: