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 )

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')

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Product owner

Marijn Otte

OTM project ID

None

Client

Integrated Marijn

Plan date

None

Developer

Johan Liefers

Code reviewer

Ger Jan van den Bosch

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Story Points

8

Time tracking

19h 15m

Epic Link

Sprint

None

Fix versions

Priority

Blocker
Configure