Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20424

As a developer, I want eZPage field type working in read only mode

    Details

    • Story Points:
      4

      Description

      Goal is that an eZ Publish developer can build a website using Page field type, in the eZ Publish 5 stack (symfony/twig).

      Zones and blocks view depends on field type configuration.

      • Zone template is configurable in the zone definition
        • In ezpage Twig block (content_fields.html.twig), zones can be easily looped and associated templates can be included from there (like in legacy), thanks to the PageService which is accessible from the Value object.
        • Zone templates loop against contained blocks and each block are rendered by a dedicated controller through a sub request (like the former block_view_gui).
          • Rendering strategy (default/esi/hinclude) is configurable in the block definition
          • The controller is configurable in the block definition (an internal controller is selected by default)
          • A dedicated view manager + BlockViewProvider + matchers are used for template matching

        Issue Links

          Activity

          Hide
          Pedro Resende (Inactive) added a comment -

          Symfony Stack Trace

          Show
          Pedro Resende (Inactive) added a comment - Symfony Stack Trace
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          [~pedro.resende@ez.no]: It seems that you didn't pass the block object to the controller...

          Show
          Jérôme Vieilledent (Inactive) added a comment - [~pedro.resende@ez.no] : It seems that you didn't pass the block object to the controller...
          Hide
          Pedro Resende (Inactive) added a comment -

          [~jerome.vieilledent@ez.no]: While testing

                  eng:
                      ezpage:
                          block_view:
                              my_own_rule:
                                  template: "EzDemoBundle:block:campaign.html.twig"
                                  match:
                                      Type: Campaign

          I'm getting the following error

          InvalidConfigurationException: Unrecognized options "block_view" under "ezpublish.system.eng.ezpage"

          Show
          Pedro Resende (Inactive) added a comment - [~jerome.vieilledent@ez.no] : While testing eng: ezpage: block_view: my_own_rule: template: "EzDemoBundle:block:campaign.html.twig" match: Type: Campaign I'm getting the following error InvalidConfigurationException: Unrecognized options "block_view" under "ezpublish.system.eng.ezpage"
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          It's because you put block_view under ezpage while it needs to be under the siteaccess

          Show
          Jérôme Vieilledent (Inactive) added a comment - It's because you put block_view under ezpage while it needs to be under the siteaccess
          Hide
          Jérôme Vieilledent (Inactive) added a comment -

          Doc fixed

          Show
          Jérôme Vieilledent (Inactive) added a comment - Doc fixed

            People

            • Assignee:
              Unassigned
              Reporter:
              Jérôme Vieilledent (Inactive)
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 week, 3 days Original Estimate - 1 week, 3 days
                1w 3d
                Remaining:
                Time Spent - 4 weeks, 1 day, 4 hours, 5 minutes Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 4 weeks, 1 day, 4 hours, 5 minutes Remaining Estimate - 1 hour
                4w 1d 4h 5m

                  Agile