Solved

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

Posted on 2011-09-15
5
1,902 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

632 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