Links to TYPO3 documentation 

You can link the following elements in any TYPO3 manual: headlines, confvals, and PHP domain definitions. You can also put an anchor almost anywhere and link to it.

There are two ways to write such a link:

  • A permalink, written as a normal link with a URL. This is the preferred way, also for links inside the same manual.
  • A reST reference with the :ref: text role.

Both ways point to an anchor, not to a file. The link keeps working when the section moves to another page or its headline is renamed.

reST references 

A reST reference uses the :ref: text role:

Reference to another manual
To keep news URLs short, :ref:`hide the detail page <georgringer/news:hideDetailPage>`.
Copied!

A reference has the following syntax:

Syntax of a reST reference
:ref:`[link_text] <[interlink]:[anchor]>`
Copied!

If you link within the same manual, you can omit the [interlink]: part, including the colon:

Reference inside the same manual
To keep news URLs short, :ref:`hide the detail page <hideDetailPage>`.
Copied!

The link modal does not offer a reST reference. Many manuals contain reST references. They keep working, and you do not have to replace them with permalinks.

Headlines without an anchor 

If a headline has no anchor, the modal shows a warning and offers no permalink. All its links, the one in reST included, use the URL of the page:

Linking to a headline without an anchor

Do not use the links from the modal in this case. They point to a page and a headline, not to an anchor. They break when the section is moved to another page. They can point to the wrong section when another section with the same headline is added.

Add a unique anchor to the headline instead, and link to that anchor with a permalink. See section Link anchors.

Do not write a file path into a permalink either, such as https://docs.typo3.org/permalink/georgringer-news:Tutorials/Index#some-section. The permalink route of docs.typo3.org resolves anchors only, so such a link returns 404. The rendering warns about it and asks for the anchor of the headline.

A :doc: link to a page and a headline, such as :doc:`Some further explanations <georgringer/news:Tutorials/BestPractice/HideDetailPage/Index#some-further-explanations>`, has the same problems.