<%namespace file="/functions/partials" name="partials" import="*"/> <%inherit file="site" /> <%def name="main_content()">

${object.val('longtitle') or object.val('title')}

${object.val('abstract') or object.val('teaser')}
%if object.val('body'):
${object.val('body')}
%endif
<% showdate = int(object.val('showdate') or 0) hideimages = int(object.val('hideimages') or 0) mobile_titleonly = int(object.val('mobile-titleonly') or 0) items = object.list() %> %if items: %if mobile_titleonly == 1:
%for idx, item in enumerate(items):
${partials.renderListItem(item,showdate, allow_noimage=hideimages, disable_image_lazyloading=len(items) <= 9 or idx < 9, headerElement="h2")}
%endfor
%else:
%for idx, item in enumerate(items):
${partials.renderListItem(item,showdate, allow_noimage=hideimages, disable_image_lazyloading=len(items) <= 9 or idx < 9, headerElement="h2")}
%endfor
%endif %endif