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

Studio block use the mainLocationId to render

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • 1.12.0-beta2
    • Studio UI
    • None

    Description

      Hi,

      Step to reproduce:

      We have 2 siteaccess (A and B to simplify) on multisite configuration. You could create and article with multiple location on siteAccess A and the secondLocation on siteaccess B
      You create a new page on SiteAccess B. Use an embed block to link to the article. Publish and you will see that the block render the main location Id and not the location Id you expected on your siteacsess

      If I take an example of EmbedBlock the code is:

          public function getTemplateParameters(BlockValue $blockValue)
          {
              $attributes = $blockValue->getAttributes();
      
              $contentInfo = $this->contentService->loadContentInfo($attributes['contentId']);
      
              return ['locationId' => $contentInfo->mainLocationId];
          }
      

      I create a compilerPass to override block services to be able to load locations and filter it by Siteaccess but its not an optimal solutions
      Anyway, this issue impact those block:

      • Embed
      • Keyword
      • Places
      • Schedule

      Cheers.

      Attachments

        Activity

          People

            Unassigned Unassigned
            philippe.vincent-royol-obsolete@ez.no Philippe Vincent-Royol (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: