{% set widgetname="item" %} {% extends 'Pagewidget/widget.twig' %} {% block widgetaction %} {% if canadd %} {% endif %} {% endblock %} {% block widgetbody %} {% set havemenu=false %} {% set havebookmark=false %} {% if menu and withbookmark!= 2 and (canadd or bookmarks is not empty or itemcategorys|length > 1) %} {% set havemenu=true %}