Contribution 

Contributions to this manual are made by editing the ViewHelper's page in the TYPO3CMS-Reference-ViewHelper repository — the usual Edit on GitHub workflow works as it does in every other official TYPO3 manual. Use the Edit on GitHub button on the page you want to change.

Which parts of a page are generated 

Every ViewHelper page mixes two kinds of content:

Generated
The description, flags such as deprecated or internal, and the table of arguments all come from the ViewHelper's PHP class. The typo3:viewhelper directive reads them from Documentation/Global.json and the other JSON files each time the manual is rendered. The Fluid ViewHelper Documentation Generator keeps those files current, running once a day. A change to a doc-comment or to an argument therefore appears on the page without anyone editing it.
Written by hand
Everything else: the explanations, the examples and the structure of the page. This is what you contribute.

Pages are only ever added, never rewritten:

  • A ViewHelper that has no page yet gets one from the generator — once.
  • An existing page is never overwritten, so hand-written text is safe.
  • When a ViewHelper is removed from the TYPO3 Core, its page is left behind and has to be deleted by hand.

Hand-written documentation is preferred 

Extended examples belong on the page in this manual, not in the PHP doc-comment. A doc-comment should stay a short description of what the ViewHelper does. Longer explanations, several usage examples and their rendered output are easier to read and to maintain in the manual, where they can use the full reST markup, tabs and literal includes.

Editing the ViewHelper source 

Editing the PHP doc-comment is the right fix when the short description itself is wrong or missing, since that text is shown on the page and in IDEs. The ViewHelper classes live at

  1. https://github.com/TYPO3/typo3/tree/main/typo3/sysext/core/Classes/ViewHelpers
  2. https://github.com/TYPO3/typo3/tree/main/typo3/sysext/backend/Classes/ViewHelpers
  3. https://github.com/TYPO3/typo3/tree/main/typo3/sysext/fluid/Classes/ViewHelpers
  4. https://github.com/TYPO3/Fluid/tree/main/src/ViewHelpers

Such a change reaches this manual with the next run of the generator, which happens once a day. See Fluid ViewHelper reference generation for how the whole process fits together.

You can use the common directives of the reST markup language supported by the TYPO3 documentation rendering toolchain.