{% load catalog_tags %} {% if object_list %} {% for treeitem in object_list %} {% with treeitem.content_object as object %}