You are here
View more context
😉
@kinglozzer If I do $Up.Up I get [User Error] Up called when we're already at the top of the scope.
$Up.Up
[User Error] Up called when we're already at the top of the scope
Inside <% loop $Top.getCustomItems($ID) %>?
<% loop $Top.getCustomItems($ID) %>
yup
and $Top is in this case a BaseElement DataObject not a controller. (creating a custom silverstripe elemental block)
Gah, probably yet another edge case with the current behaviour then 😧
Allright 😞 well I should be able to solve it using a custom controller, working on another task atm, but I will get back to this soon and see 🙂
Is there an if statement for looping children if only more than 3 children?
<% if $Children.Count > 3 %> <% loop $Children %> … <% end_loop %><% end_if %>
awesome thank you!