Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1469
  • Last Modified:

Sharepoint 2007 set homepage hyperlink

I want to add a "set this site as your homepage" link in Sharepoint 2007.  When using javascript, it wants the code in the html body tag.  How to is the same task accomplished in Sharepoint 2007.  I am looking at the code view of the page in Sharepoint Designer and don't even know where to begin.  Is it possible to put the link in a web part?  All user's have IE 7.
0
jbester
Asked:
jbester
  • 3
3 Solutions
 
Robbie_LeggettCommented:
The only way I can think of to do this, would be to use a content editor web part, and in the source editor paste this text:

<a href="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://website);">Set as Homepage
</a>

Remembering to substitute the http://website for the address you choose. I have tested this and it works.

:-)
0
 
Robbie_LeggettCommented:
Here's an example with some formatting:

<font face="arial" size="4"><b><a href="#"
onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://website');">Set as Homepage
</a></b></font>
0
 
Robbie_LeggettCommented:
I also managed to add this to the body of the page, by selecting a space in the main part of the page underneath the web parts in SharePoint Designer, and pasting the code above in.

Worked fine.

:-)
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now