Block management in controllers other than in PageBundle

Description

Background

Block management must be possible on pages outside the PageBundle also, to decorate other pages with blocks.

Requirements

  • When the controller uses a theme view there must be an Edit button on that page also (for example the item action in the ArticleController)

  • You must be able to add blocks, the same as on PageController pages

  • Blocks will be saved based on controller action and channel. If the controller has parameters the same blocks will be used for each parameter (for example every news article will have the same blocks)

  • I think the view the controller uses for its output (in this example the article) will be fixed (because it is not a block area), but preferably this can be moved

Currently, the base view of the theme will be used, it might be a future feature to choose the template that will be used (maybe with )

Technical tasks

None

Deployment actions

put content block around base template grid
{% block content %}
{{ integrated_grid('main') }}
{% endblock %}

integrated block and menu edit variables become request variables

integrated_block_edit|default -> app.request.attributes.get('integrated_block_edit')

integrated_menu_edit|default -> app.request.attributes.get('integrated_menu_edit')

Status

Assignee

Unassigned

Switches

None

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure