--- label: 'Working with help topics' top_level: true related: - help.help_topic_search - locale.translate_strings --- {% set help_link_text %}{% trans %}Help{% endtrans %}{% endset %} {% set help_link = render_var(help_route_link(help_link_text, 'help.main')) %} {% set translate_text %}{% trans %}User interface translation{% endtrans %}{% endset %} {% set translate_link = render_var(help_route_link(translate_text, 'locale.translate_page')) %} {% set help_search_topic = render_var(help_topic_link('help.help_topic_search')) %}

{% trans %}What is a help topic?{% endtrans %}

{% trans %}A help topic describes a concept, or steps to accomplish a task, related to a feature provided by one or more modules or themes. If the core Search module is enabled, these topics are also searchable.{% endtrans %}

{% trans %}Where are help topics listed?{% endtrans %}

{% trans %}The top-level help topics are listed at {{ help_link }}. Links to other topics, including non-top-level help topics, can be found under the "Related" heading when viewing a topic page.{% endtrans %}

{% trans %}How are help topics provided?{% endtrans %}

{% trans %}Modules and themes can provide help topics as Twig-file-based plugins in a project sub-directory called help_topics; plugin metadata is provided in YAML front matter within each Twig file. Plugin-based help topics provided by modules and themes will automatically be updated when a module or theme is updated. Use the plugins in core/modules/help/help_topics as a guide when writing and formatting a help topic plugin for your theme or module.{% endtrans %}

{% trans %}How are help topics translated?{% endtrans %}

{% trans %}The title and body text of help topics provided by contributed modules and themes are translatable using {{ translate_link }} (provided by Interface Translation module). Topics provided by custom modules and themes are also translatable if they have been viewed at least once in a non-English language, which triggers putting their translatable text into the translation database.{% endtrans %}

{% trans %}How can users search for help topics?{% endtrans %}

{% trans %}To enable users to search help, including help topics, you will need to install the core Search module, configure a search page, and add a search block to the Help page or another administrative page. (A search page is provided automatically, and if you use the core Claro administrative theme, a help search block is shown on the main Help page.) Then users with search permissions, and permission to view help, will be able to search help. See the related topic, {{ help_search_topic }}, for step-by-step instructions.{% endtrans %}

{% trans %}Additional resources{% endtrans %}