Dec 01 2017 12:27 AM
Dec 01 2017 12:27 AM
Hi!
I have written quite a long News page in a Communication site. Is it possible to have anchor links to headlines or sections of that article?
Dec 10 2017 03:04 PM
This isn't possible yet as far as I can tell :(. Hopefully some OOTB controls are created and we don't have to write custom web parts to do this sort of thing.
Here's a couple of user voices you can go vote for and comment on in relation:
Dec 10 2017 05:56 PM
Sep 20 2019 12:48 PM
This might be fixed now as of August 2019.
SPO makes any text where you use the "header" style into a potential anchor.
Publish the page and then mouse over the header text. You'll see a little link icon.
Right click and copy the link. That's your header link INTERNAL TO THE PAGE
If you want to use the link in a menu, you have to modify it. If your anchor link was something like this:
https://XXX.sharepoint.com/sites/XXX/SitePages/Human-Resources.aspx#benefits
To get to that anchor via a menu item you have to add a '?' before the anchor hash tag thusly:
https://XXX.sharepoint.com/sites/XXX/SitePages/Human-Resources.aspx?#benefits
HUGE thanks to Doug Allen writing at the C5 Insight page for discovering this little trick...
Nov 11 2019 04:08 AM
hello @Alpine_Miller
I saw many people saying about this resource, but I cannot use this feature because a url (#) is not created from a Header.
My question is:
Is it necessary to enable the feature in any sharepoint settings?
Nov 11 2019 08:00 AM
@EmersonOliveiraI didn't have to turn on any settings. In my experience, any time you use the text style "Header 1" or "Header 2", it creates an anchor point. You have to publish the page live, then when you mouse over the Header 1/2 text a little anchor link appears to the right of the text. Right click on that and copy the link and you can use that for the URL.
Nov 11 2019 09:37 AM
hello @Alpine_Miller
Tks for your answer.
I did exactly what you reported.
In my organization we use sharepoint online and possibly there was some configuration that is not generating link from header.
Because we use the private feature so much that some areas don't access some sensitive data, it may have something that doesn't allow us to generate the anchors.
Thanks for your quick reply.