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

Make root locations depend on siteaccess configuration in REST

    XMLWordPrintable

Details

    • Icon: Story Story
    • Resolution: Won't Fix
    • Icon: High High
    • 5.3
    • 5.0, 5.1, 5.2
    • Platform > REST API v2
    • None

    Description

      // Content root location
      $generator->startObjectElement( 'rootLocation', 'Location' );
      $generator->startAttribute( 'href', $this->router->generate( 'ezpublish_rest_loadLocation', array( 'locationPath' => '1/2' ) ) );
      $generator->endAttribute( 'href' );
      $generator->endObjectElement( 'rootLocation' );
      
      // Users root location
      $generator->startObjectElement( 'rootUserGroup', 'UserGroup' );
      $generator->startAttribute( 'href', $this->router->generate( 'ezpublish_rest_loadUserGroup', array( 'groupPath' => '1/5' ) ) );
      $generator->endAttribute( 'href' );
      $generator->endObjectElement( 'rootUserGroup' );
      
      // Media root location
      $generator->startObjectElement( 'rootMediaFolder', 'Location' );
      $generator->startAttribute( 'href', $this->router->generate( 'ezpublish_rest_loadLocation', array( 'locationPath' => '1/43' ) ) );
      $generator->endAttribute( 'href' );
      $generator->endObjectElement( 'rootMediaFolder' );
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: