+ if insert_grid:
+ resources_as_grid = QueryGrid(
+ page = page,
+ domid = 'resources-grid',
+ title = 'Grid view',
+ # this is the query at the core of the slice list
+ query = sq_resource,
+ query_all = query_resource_all,
+ # safer to use 'hrn' as the internal unique key for this plugin
+ id_key = main_query_key,
+ checkboxes = True,
+ )
+