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

    • Type: Bug
    • Status: Open
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.12.0-beta2
    • Fix Version/s: None
    • Component/s: Studio UI
    • Labels:
      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

            Assignee:
            Unassigned
            Reporter:
            philippe.vincent-royol@ez.no Philippe Vincent-Royol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: