New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adamwojs/ezplatform-location-reference

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adamwojs/ezplatform-location-reference

eZ Platform Location Reference

ezplatform-bundle
Source
Packagist
Version
v0.2.0
Version published
Total downloads
3
Maintainers
0
Created
Source

ezplatform-location-reference

Problem

The common case in the eZ Platform configuration is referencing to some location, usually using Location ID e.g.

  • Content root for Site Access (https://doc.ezplatform.com/en/latest/guide/multisite/#location_id)
  • Folder used to store Image Assets (https://doc.ezplatform.com/en/latest/api/field_type_reference/#configuration)

This several issues in this approaches:

Solution

This package introduce Domain Specific Language, based on Symfony Expression Language component, allowing to refer locations using meaningful and descriptive expressions. For example:

  • Content Tree Root:
root()
  • Location by Remote ID
remote_id("babe4a915b1dd5d369e79adb9d6c0c6a")
  • Parent of named reference
parent(named("MEDIA"))

FAQs

Package last updated on 21 Aug 2019

Related posts