diff --git a/bundles/snippet.rst b/bundles/snippet.rst index 31ba1afd..3ac51136 100644 --- a/bundles/snippet.rst +++ b/bundles/snippet.rst @@ -74,3 +74,20 @@ Properties ---------- Properties are the same as Page :doc:`../book/templates`. + +Load Snippets from a Subfolder +------------------------------ +By the means of configuration in `config/packages/sulu_admin.yaml` according to the following scheme +it is also possible to load snippet templates from custom folders. + +.. code-block:: yaml + + sulu_core: + content: + structure: + paths: + event_snippets: + path: "%kernel.project_dir%/config/template/events/snippets/" + type: "snippet" + +In this example, a new Events folder has been specified. It is important that the key for the configuration remains unique for each config.