From d6ccc3681f3401d73f213e6b85b7a9e53a58ebaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Luka=C4=8D?= Date: Wed, 3 Nov 2021 09:14:50 +0100 Subject: [PATCH 1/2] Update templating.rst Fixing typos' children > siblings --- docs/reference/templating.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/templating.rst b/docs/reference/templating.rst index 2de61d0e..5b7c1539 100644 --- a/docs/reference/templating.rst +++ b/docs/reference/templating.rst @@ -557,12 +557,12 @@ Location siblings - **Listing Location's siblings** This is done by calling the method ``getSiblings()``, also available as ``siblings()`` in - Twig. It returns an array of children Locations and optionally accepts maximum number of items + Twig. It returns an array of siblings Locations and optionally accepts maximum number of items returned (by default ``25``). .. code-block:: twig - {% set children = location.siblings(10) %} + {% set siblings = location.siblings(10) %}

List of 10 Location's siblings, sorted as is defined on the parent Location

From 92222d2cf4dcea131592b73c8c40cd79c4ed0474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Fri, 12 Nov 2021 14:22:42 +0100 Subject: [PATCH 2/2] Fix typo --- docs/reference/templating.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/templating.rst b/docs/reference/templating.rst index 5b7c1539..1cfeb210 100644 --- a/docs/reference/templating.rst +++ b/docs/reference/templating.rst @@ -557,7 +557,7 @@ Location siblings - **Listing Location's siblings** This is done by calling the method ``getSiblings()``, also available as ``siblings()`` in - Twig. It returns an array of siblings Locations and optionally accepts maximum number of items + Twig. It returns an array of sibling Locations and optionally accepts maximum number of items returned (by default ``25``). .. code-block:: twig