Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.