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

Add a view service dedicated to the SubitemBoxView

    XMLWordPrintable

Details

    Description

      EZP-26866 resulted in a prototype of Symfony Application where the YUI based subitem list and UDW are integrated through 2 Web Components: ez-subitem and ez-universaldiscovery. Behind the scene the YUI App object gets 2 new methods renderView and renderSideView to respectively render a view and render a side view. Those methods expect a View and the corresponding View Service constructors. In the prototype, for the subitem list, eZ.LocationViewViewService was used but it does unneeded things for the eZ.SubitemBoxView like loading the Location path for instance.

      So for the Subitem list a dedicated view service is needed to load only the data required by eZ.SubitemBoxView. It should be called eZ.SubitemBoxViewService.

      In addition, the eZ.LocationViewViewService expects a REST Location id, so in the prototype to render the subitem we were forced to use the ez-subitem custom element in the following way:

      <ez-subitem parent-location-id="/api/ezp/v2/content/locations/1/2"></ez-subitem>
      

      While it would be nicer to be able to write:

      <ez-subitem parent-location-id="2"></ez-subitem>
      

      Internally, that means the eZ.SubitemBoxViewService should expect a numeric id and not the REST id and from it will load all the data required by eZ.SubitemBoxView

      Attachments

        Activity

          People

            Unassigned Unassigned
            damien.pobel-obsolete@ez.no Damien Pobel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: