Skip to content

Commit

Permalink
Fix documentation for excluding templates in Sulu 2.x (#809)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: mcoiffier <[email protected]>
  • Loading branch information
mcoiffier and mcoiffier authored Jun 25, 2024
1 parent 9fd5d89 commit 61be3cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions book/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ The template of a page can be selected in the admin interface:

.. figure:: ../img/templates-selection.png

.. Caution::
.. note::

A template is shown in the dropdown only if both the XML and the Twig file
exist! If you can't see your template, double-check the directories
``config/templates/pages`` and ``templates/pages``.
If you don't want a template to appear in this list, use the ``excluded-templates`` node in the webspace configuration file.
Have a closer look at `Setup a Webspace <webspaces.html#urls>`_ for more details.

The name displayed in the dropdown is configured in the ``<meta>`` section of
the XML:
Expand Down

0 comments on commit 61be3cc

Please sign in to comment.