This recipe is compatible with eZ Publish 5.2 / 2013.09
|Table of Contents|
|Knowledge of the root location is important since it can be a starting point for API queries, or even links to home page, but as eZ Publish can be used for multisite development, and as such root location can vary.|
By default, root location ID is
2, but as it can be easily be changed by configuration, the best practice is to retrieve it dynamically.