I am trying to create a custom collection template, which includes some of my custom fields.
This is what I have at the moment: https://gist.github.com/adrigen/06bdc88bda6e9cf20a44
But the error is: NameError: name 'resource_type' is not defined.
I know I need to define that variable, but I cant find the right place to do it.
I tried
<metal:block use-macro="context/standard_view/macros/entries"
tal:define="
resource_type context/resource_type; >
And a few other places, but it doesn't seem to make a difference. What am I understanding incorrectly?