Solved

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

Posted on 2011-09-15
5
1,394 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 Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Question has a verified solution.

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

Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

948 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

16 Experts available now in Live!

Get 1:1 Help Now