Add theme path global variable and use it to include base views in Thompson / default theme, using the template locator

Description

Background

When a theme base view override is made from the Thompson / default or theme, the original base view is used in all content item templates. This should be done dynamic by getting the path from the template locator.

Requirements

Support including the base view of the current theme, instead of a hardcoded bundle.

Development plan

We would like to combine the namespaced twig paths with a "helper" that gives us the active path:

In this case integrated_active_theme returns a namespaced path, for example:

Things that needs to be changed:
1. Config.yml needs the namespaces, example:

2. Layout/block selector in Integrated needs to look at the namespaces and return the views that can be found.
3. The themes needs to be changed (but this should also be done in the other solutions).
4. The theme manager (perhaps the whole ThemeBundle) can be "deleted" with the recursive path "shizzle".

Technical tasks

None

Deployment actions

DEPRECATED:

  • _theme global -> integrated_active_theme()

Status

Assignee

Unassigned

Client

Integrated Marijn

Epic Link

Sprint

None

Fix versions

Configure