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

As a Developer I want access to Content on Location object, so that I can use it if I need it

    Details

      Description

      As a Developer I'd like to get easily access to content item when I have a location.

      For instance if I search for locations I'd like to be able to reach the content of that location within Twig templates without further work.

      This story contains the following sub tasks:

      • Add a SPI\Persistence\Content\Handler->loadContentList() method in order to be able to bulk load content, so the lazy property can be loaded in bulk on collection of locations.
      • Take advantage of this in SearchService->findContent() for improving performance when loading content
      • Use this in order to be able to expose $location->getContent() property in API, which for Twig will simply mean location.content

        Issue Links

          Activity

          Show
          André Rømcke added a comment - PR: https://github.com/ezsystems/ezpublish-kernel/pull/2328
          Hide
          Michał Szołtysek added a comment -

          QA Approved with custom get content command.

          Show
          Michał Szołtysek added a comment - QA Approved with custom get content command.

            People

            • Assignee:
              Unassigned
              Reporter:
              André Rømcke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: