Solved

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

Posted on 2011-09-15
5
1,718 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 50
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
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 (Microsoft MVP / EE MVE) 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2010 Versioning 2 66
SharePoint Designer 2010 - Format Item As Changed 2 47
Sharepoint data after Hyper-V restore 4 37
SharePoint 2013 URL Duplication Issue 5 67
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. …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

739 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