Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: adding some details on site.ini settings EZP-23838

...

Code Block
languagephp
titleinjected-settings
        $event->getParameters()->set(
            "injected-settings",
            $settings + (array)$event->getParameters()->get( "injected-settings" )
        );

Site settings

You can inject the site.ini SiteAccessSettings in your ezpublish.yml file.

ymlsite.ini[SiteAccessSettings]
location_idPathPrefix
excluded_uri_prefixesPathPrefixExclude
 [SiteSettings]
location_idIndexPage
 DefaultPage
 RootNode
Code Block
ezpublish:
    system:
        ezdemo_site_group:
            content:
                tree_root:
                    # Root locationId. Default is top locationId
                    location_id: 123
                    # Every URL aliases starting with those prefixes will be considered
                    # being outside of the subtree starting at root_location.
                    # Default value is an empty array.
                    # Prefixes are not case sensitive.
                    excluded_uri_prefixes: [ /media, /images ]

Injected Behavior

In addition to injected settings, some injection of behavior is also performed.

...