bdunogier / ezplatform-query-bundle
An eZ Platform bundle that adds features around Repository Queries.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:ezplatform-bundle
Requires
- ezsystems/ezpublish-kernel: ^6.4
- symfony/symfony: ^2.3|^3.0
This package is auto-updated.
Last update: 2024-10-19 11:55:09 UTC
README
A Bundle for eZ Platform, the open-source Symfony based CMS, that provides extra features around Repository Queries.
Installation
Features
Most features involve QueryTypes, predefined QueryObjects that accept parameters, and return a named Query.
List QueryTypes
This command can list registered QueryTypes, and display details for one in particular:
# php app/console bd:query:types There are 2 registered QueryTypes: - AppBundle:LatestContent - AppBundle:Menu # php app/console bd:query:types AppBundle:LatestContent Class: "AppBundle\QueryType\LatestContentQueryType" Service: "app.query_type.latest_content", Parameters: location_id, limit
Run a Query
This command runs a Query, built from a QueryType, and displays the results:
# php app/console bd:query:run AppBundle:LatestContent location_id:2
3 result(s) found in 0.06 seconds:
[60] Top Stories (blog)
[58] Contact Us (contact_form)
[59] Projects (gallery)