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 have a SharePoint site, and saved it as a Template.

My problem is, I have a third part WebPart that references in his settings, the URL of the site.

When I create a new site using the template, that webpart is referecing the wrong URL (the URL of the template site).

There is a way to get the url of the new site?

share|improve this question

If you are using 2010, then you can import that template into Visual Studio. At that point there is a lot of cleanup work to produce a valid WebTemplate package, but you can include code that can put web parts on a page or change web part properties as needed through feature receivers that fire on activation.

share|improve this answer

Check your third party WebPart properties, maybe you can put a relative url, if it's possible you won't have a problem using exported template.

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.