Silverstripe Version: 4.2
How to loop 2 different functions in the template ?
Two functions are,
- fnProduct
- fnProductType
How to loop 1 function in 2 functions? I want to access fnProductType ID in fnProduct to filter the products.
<% loop fnProductType %>
<% loop fnProduct %>
<% if TypeID == $Up.ID %>
Filter Products here...
<% end_if %>
<% end_loop %>
<% end_loop %>
I try to access fnProductType ID using $Up, but it does not give any result.