<% loop $Top.getCustomItems($ID) %>?
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!
Hey I've got this issue where despite loading a site via https, and setting base and alternate url to https protocol, it continues to be served via http which leads to resources not loading. Anyone have experience with this?