{% extends 'pages/portal/default.twig' %} {% set options = options|default({}) + { portal_highlight: false, portal_list_limit: 12, page_variant: 'search', portal_teaser_fixed: false, } %} {# Required variables # record - the portal page itself otherwise a fake recored wil be created for the taxonomy # objects - array of content objects (records) to display in teaserlist (optional, can select it's own records via pool parameters) # teasers - array of teasers in addition converted objects above (optional, will use it's own records) #} {# --- Logic -------------------------------------------------------------------------------------------------------- #} {% set title = 'Ihre Suchergebnisse für: "' ~ search|default ~ '"' %} {% if not records|default %} {% setcontent records = 'articles/latest/' ~ options.portal_list_limit %} {% endif %} {% set objects = records %} {# The search controller cant provide a record, but has a configurable parameters array we can use #} {% if not record|default %} {% set record = app.storage.getContentObject('portal',{ title: title, status: 'published' }) %} {% endif %} {% block portal_teasers %}
{{ parent() }} {% endblock %}