Hi,
On the items/browse page of my Omeka site I can just loop items directly.
foreach (loop('items') as $item):
On the index page of my Omeka site I have to first get the items:
$items = get_records('Item',[], 1000);
set_loop_records('items', $items);
foreach (loop('items') as $item):
I’m not entirely sure why I have to use get_records on my index page to get the items but not on the items/browse page where the ‘items’ element is set up and ready to go. I assume there is somewhere in the code that pre-enables these loop variables, if anyone can shed any light on that for me that’d be great.
Thanks.