From 6d8183ba7b683dcc4e5622292b89a4bdf7ac040f Mon Sep 17 00:00:00 2001 From: p0krawczyk <83186119+p0krawczyk@users.noreply.github.com> Date: Fri, 25 Oct 2024 19:34:06 +0200 Subject: [PATCH] Update default-snippets.rst Added informations about ``Parameter not found exception`` during rendering of the twig template with sulu_snippet_load_by_area() call after defining new area in the snippet template. Added possible solution as a tip. --- cookbook/default-snippets.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cookbook/default-snippets.rst b/cookbook/default-snippets.rst index 4daf39c4..7a096158 100644 --- a/cookbook/default-snippets.rst +++ b/cookbook/default-snippets.rst @@ -64,6 +64,12 @@ Sulu includes a ``sulu_snippet_load_by_area`` twig function that allows to load the default snippet for a given area. The usage of the function is documented in :doc:`/reference/twig-extensions/functions/sulu_snippet_load_by_area`. +.. tip:: + + After defining a new area in the snippet template, you may have to clear the website cache with + ``php bin/websiteconsole cache:clear`` command. Not clearing the website cache may result in Parameter + not found exception. + Using the default snippet as fallback value in a ``snippet_selection`` ----------------------------------------------------------------------