Solved

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

Posted on 2011-09-15
5
1,554 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:Ingeborg Hawighorst
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:Ingeborg Hawighorst
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:
Ingeborg Hawighorst 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have just recently built a new SharePoint 2007 farm on a complete Windows 2008 R2 server platform and part of my standard build procedure is to implement a warm up routine, usually in the form of a script that is scheduled every morning to launch …
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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