Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-368

Move template from block value to block view configuration

    XMLWordPrintable

Details

    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

        Activity

          People

            Unassigned Unassigned
            slawomir.uchto@ibexa.co Sławomir Dołżycki-Uchto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: