From 2bdd38e5422240045db4b9c5922d5371571f0576 Mon Sep 17 00:00:00 2001 From: Josh Weiss Date: Tue, 14 Mar 2017 10:41:25 -0700 Subject: [PATCH] Allow full path render of oages in selector. (#1015) Full path is off by default. --- .../templates/forms/fields/pages/pages.html.twig | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/themes/grav/templates/forms/fields/pages/pages.html.twig b/themes/grav/templates/forms/fields/pages/pages.html.twig index 3de3b59fb..9f6c62c29 100644 --- a/themes/grav/templates/forms/fields/pages/pages.html.twig +++ b/themes/grav/templates/forms/fields/pages/pages.html.twig @@ -13,18 +13,20 @@ {% set depth = depth +1 %} {% endif %} - {% set indent = depth == 0 ? '' : repeat('-',depth) ~ ' ' %} + {% set indent = depth == 0 ? '' : repeat('-', depth) ~ ' ' %} {% for page in pages.children %} {% if page.routable() or field.show_all %} {% endif %} {% if page.children|length > 0 and (field.show_modular or not page.modular()) %} - - {{ _self.options(field, page,value, depth + 1) }} - + {{ _self.options(field, page, value, depth + 1) }} {% endif %} {% endfor %} {% endmacro %}