Skip to main content
Closed (Duplicate)

Link target support for sections within articles

Related products:CC Community
  • September 20, 2021
  • 2 replies
  • 23 views

  • Contributor ⭐️⭐️
  • 5 replies

Request

Please add support for link targets within articles. 

Justification

This feature would allow us to:

  • Build mini-TOCs of links to sections in long articles to help users navigate to the sections they need rather than having to scroll.
  • Add a link from one article to a relevant section in another article. Again, this helps prevent having to scroll. Also, sometimes the title of a target article doesn’t seem relevant to the context of the section that is targeted. In this example, seeing the title can cause users to assume the wrong article was linked.

Detail

This example creates a link target, but Insided changes it to <h2>Example Section Name<h2>:
<h2 id="my-target-id">Example Section Name<h2>

This example inserted into the same article establishes a link that jumps to the target section:

<a href="#my-target-id">Example Section Name</a>

This example inserted into a different article or a different site establishes a link that jumps to the target section, assuming the address of the article is "URLexample-categoryexample-article":

<a href="URLexample-categoryexample-article#my-target-id">Example Section Name</a>

2 replies

  • Author
  • Contributor ⭐️⭐️
  • 5 replies
  • September 21, 2021

Replying to my own idea because there doesn’t seem to be a way to edit it. I didn’t think of searching for “anchor” before posting this idea. An idea search would have yielded the Creating anchors in posts idea. That idea requests the same for posts in general; this one is specific to articles. This one might be easier to implement.


Cristina
Forum|alt.badge.img+1
  • Helper ⭐️⭐️⭐️
  • 530 replies
  • September 29, 2021
Updated idea statusNewClosed (Duplicate)
Idea merged into:
Wolfgang Hammer

All the votes from this idea have been transferred.

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings