From fd7efba7d96c670ca611ad37eab99f3f52f4df8f Mon Sep 17 00:00:00 2001 From: Alex Saelens Date: Wed, 4 Jul 2018 09:48:39 +1200 Subject: [PATCH] Make column work The ColumnCount is set on the CompositeField class, and not on its FieldList. So to get the ColumnCount, we need to use $Top to get out of the loop. --- templates/forms/CompositeField_holder_small.ss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/forms/CompositeField_holder_small.ss b/templates/forms/CompositeField_holder_small.ss index 3c5436a82..e0fd70427 100644 --- a/templates/forms/CompositeField_holder_small.ss +++ b/templates/forms/CompositeField_holder_small.ss @@ -4,8 +4,8 @@ <% end_if %> <% loop FieldList %> - <% if ColumnCount %> -
+ <% if $Top.ColumnCount %> +
$SmallFieldHolder
<% else %>