Details
-
Improvement
-
Resolution: Fixed
-
High
-
2015.11
-
None
Description
Currently template name is part of XML block value stored in database. It's inflexible and binds database data directly to file system (which may lead to serious problems in future).
Idea is to store only view identifier in database and move template to block configuration.
Example configuration (before/after):
# Before blocks: schedule: 'eZStudioDemoBundle:blocks:schedule_hero.html.twig': 'Studio Demo schedule hero' 'eZStudioDemoBundle:blocks:schedule_grid.html.twig': 'Studio Demo schedule special grid'
# After blocks: schedule: views: 'schedule_hero': 'template': 'eZStudioDemoBundle:blocks:schedule_hero.html.twig' 'name': 'Studio Demo schedule hero' 'schedule_grid': 'template': 'eZStudioDemoBundle:blocks:schedule_grid.html.twig' 'name': 'Studio Demo schedule special grid'
Attachments
Issue Links
- links to