ScreenSteps

Resolving Internal Links in API

Updated on

Internal links in ScreenSteps use data-attributes to expose the ID of the article being linked to. A typical URL might look like this:

<a href="../../1/l/2-title" data-internal-link-id="24" data-internal-link="lesson" data-internal-manual-id="52" target="_blank">My link</a>

This table explains the meaning of these items:

Value Description
data-internal-link-id This is the ScreenSteps id of the object that is being linked to.
data-internal-link This is the type of object that is being linked to.
data-internal-anchor This is an (optional) anchor name for the target

Because of some legacy content, data-internal link can have a variety of values. The table below will show you what you should use to resolve links using the API.

data-internal-link value API endpoint
article, lesson, or step The data-internal-link-id will be pointing to an article (or a step inside an article). lesson is deprecated.
chapter or section The data-internal-link-id will be pointing to a chapter in your site. section is deprecated.
manual The data-internal-link-id will be pointing to a manual.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Previous Article Example requests and responses (v2 JSON API)
Next Article Creating Manuals, Chapters and Articles through the API
Still Need Help? Contact Us