Direct URL linking to a section of a knowledgebase article

RichardSaunders
Tera Guru

We have a 'How to" Knowledge article which has lots of hyperlinks to other articles. Is there a way that i can link to a section of an article (like in word doc and pdf). We have some pretty lengthy articles (e.g Skype) where it would help if we could link directly to the section "Set up a meeting" etc.

Does anyone know if this can be achieved in ServiceNow.

Yours hopeingly

RS

1 ACCEPTED SOLUTION

adamjgreenberg
ServiceNow Employee
ServiceNow Employee

You should be able to refer to an anchor in HTML that points to a specific section of a document.



You will of course have to embed the anchor in the document you want to reference and then call that anchor in the KB.



This will help get you started (and you can mark up HTML in the KB's edit screen)



HTML Links



Another reference:


Create a hyperlink to a specific location in another document or Web page ~ International Journal of...


View solution in original post

3 REPLIES 3

adamjgreenberg
ServiceNow Employee
ServiceNow Employee

You should be able to refer to an anchor in HTML that points to a specific section of a document.



You will of course have to embed the anchor in the document you want to reference and then call that anchor in the KB.



This will help get you started (and you can mark up HTML in the KB's edit screen)



HTML Links



Another reference:


Create a hyperlink to a specific location in another document or Web page ~ International Journal of...


elwyn1
Kilo Contributor

The HTML ID tag defines where you jump to within a page.

 

so create the place to jump to, by including ID within a tag

eg. <h2 id="C4">Chapter 4</h2>

 

then go back to the top to your contents and create the hyperlink as 

<a href="#C4">Jump to Chapter 4</a>

 

where the #C4 is referencing the id=C4

 

taken from  https://www.w3schools.com/html/html_id.asp

Jesse20
Tera Contributor

NOTE:  The name attribute has been deprecated in HTML5 for anchor tags, instead use the identifier tag when making the target.

Example:

  1. Create the target:
<section id=‘awesome-section’>

  <h2 id=‘awesome-section-header’>My Super Awesome Section Header</h2> 

</section>
  • Where the<h2></h2>can be whatever element that you’re linking to.
  • Here you could link either to the start of the section, using http://page-url.com/#awesome-section) or to the header via http://page-url.com/#awesome-section-header
  • page-url.com#awesome-section is the same as page-url.com/#awesome-section

 

  1. Reference that target within the link with something like:

Please click <a href=“#awesome-section'>here</a> to go to 'My Super Awesome Section.'