Sharepoint 2007 set homepage hyperlink

Posted on 2007-07-26
Last Modified: 2013-12-08
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.
Question by:jbester
    LVL 25

    Assisted Solution

    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="#"
    this.setHomePage('http://website);">Set as Homepage

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

    LVL 25

    Assisted Solution

    Here's an example with some formatting:

    <font face="arial" size="4"><b><a href="#"
    this.setHomePage('http://website');">Set as Homepage
    LVL 25

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I recently found myself in a Corporate Situation where the client had requested blocking access to any and all websites except his own Domain? Easy? I am sure this would be your answer but their requirement was, this has to be done without using…
    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
    This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now