Solved

Sharepoint 2010: How do I add an anchor link to Website

Posted on 2011-09-15
5
1,349 Views
Last Modified: 2012-05-12
Hello. Probably a stupid question but I can't figure out  how to add an anchor link to my sharepoint website. I read somewhere that sharepoint has problems with anchor links.  
0
Comment
Question by:tolppa
  • 3
  • 2
5 Comments
 
LVL 50

Expert Comment

by:teylyn
ID: 36547497
Hello,

I've used plenty of anchor links in Sharepoint and have not experienced any problem. The syntax is the same as in any other website

<a href="http://sitename/pagename.aspx#anchorname">go to anchor</a>

Open in new window


Of course you need to make sure that the anchor exists on the page in the first place. For example you can edit a Content editor web part with the HTML tools and insert an anchor in the HTML

cheers, teylyn
0
 
LVL 1

Author Comment

by:tolppa
ID: 36547835
Thanks teylyn. I would like to avoid forcing users to edit html, but seems like that is not possible.
0
 
LVL 50

Expert Comment

by:teylyn
ID: 36547933
If the site has the Publishing Feature enabled, I you can use the ribbon to add an anchor.

First, you need to create a hyperlink. When the hyperlink is selected, you see the Link Tools ribbon. The Bookmark field is only visible when the Publishing Feature is enabled, though.

 link tools
cheers, teylyn
0
 
LVL 50

Accepted Solution

by:
teylyn earned 250 total points
ID: 36547970
OK, here's the step by step.

Create the Anchor on the target page:


1. Open the target page, for example http://SPSite/SitePages/How%20To%20Use%20This%20Library.aspx
2. Edit the page
3. copy the URL from the address bar.
4. Select some text and create a hyperlink with Insert > Link > From Address
5. Paste the URL into the address field.

You now have a hyperlink that links to the same page.

6. Click into the hyperlink to open the Link Tools ribbon.
7. In the bookmark field enter the anchor name, for example MyAnchor
8. Save the page.

Create the hyperlink on another page


9. Open the page where you want to insert a hyperlink to a bookmark on the other page.
10. Edit the page
11. Select some text and create a hyperlink with Insert > Link > From Address
12. Paste the URL (which may still be in the ClipBoard) and then add the # sign and the anchor name, for example

 http://SPSite/SitePages/How%20To%20Use%20This%20Library.aspx#MyAnchor

13. Save the page.

Test.

cheers, teylyn
0
 
LVL 1

Author Closing Comment

by:tolppa
ID: 36548221
Thanks, that work like a charm.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

760 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

21 Experts available now in Live!

Get 1:1 Help Now