I have saved a team site solution in the gallery which lets the user create subsites. Now the user would like to open some quicklaunch links in a new window when the new subsite is created.

How can I open a library/list in a new window programmatically, since the saved template does not retain the options that I have specified before I saved it?

Edit: here is my code so far but is not working:

 public override void WebProvisioned(SPWebEventProperties properties)

        SPNavigationNodeCollection leftNav = properties.Web.Navigation.QuickLaunch;
        SPNavigationNode node = leftNav.Navigation.GetNodeByUrl("/Shared Documents");
        node.Properties["Target"] = "_blank";

  • Maybe you can follow this link
    – Nico
    Apr 2, 2014 at 8:22
  • thanks for your reply, but it is not what I am looking for.
    – Imir Hoxha
    Apr 2, 2014 at 8:24

1 Answer 1


You might have found solution for this, but this is what i would have done to achieve this.

Create a jQuery script to update the links target example here

Add reference to this js onto home page of the sub site, create a new template and start creating new sites based on this template.

I hope this will help someone in future

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.