KC Lemson

By KC Lemson [MS]


Publish a web part on your sharepoint site that can be dynamically consumed inline by other sites

  • Comments 3
  • Likes

The Exchange team uses sharepoint portal server for a lot of things, such as storing & tracking documents & lists & whatnot. As the release manager, I own the site that has the master schedule on it. There are other teams that used to have a schedule listed separately on their own sites. I wanted them to consume my web part rather than repeating the content, so that if/when the schedule changes, they don't need to update theirs (or worse yet, leave it stale and confuse someone).

Linking to my web part is one option, but that's not inline in their sites, so it's not as nice of an interface. Exporting my web part as a template for them to import will only give them a copy of it at that point in time.

Thankfully, MVP & sharepoint guru Sig clued me in on how to do this. My site is http://mysharepointserver/sites/site1. I have a web part that I want to expose inline in http://mysharepointserver/sites/site2's content. Here's how the manager of site2 can do this:

1. Open up site2 in frontpage 2003. Make sure you have the default.aspx open in the page view.
2. On the task pane, choose “Find Datasource“ (click the down arrow near the top of the task pane to see it)
3. Enter the URL http://mysharepointserver/sites/site1 and the name of the web part you want to reference
4. Drag/drop the result to the desired location on your site and save changes

It works wonderfully. Thanks so much, Sig!

  • nice idea.. will have to try it for sure..

  • Well, Although I feel like Jared on the picture above (I guess <g>) it wasn't me who had the initial idea. I picked it up somewhere on the Internet a couple of months ago myself ;-)

  • This will work as described above for anything that it is on the same physical server.

    If it's a site on a different server you can still use roughly the same procedure (FP 2003's DataView) but instead of using Find Datasource and entering the site's address, you'll have to go to the (WSS) database (database table) instead.