ibexa-bundle

UNIX name Owner Status
ibexa-bundle Mugo.ca stable
Version Compatible with
N/A N/A
Tools for Ibexa

Installation

composer require mugoweb/mugoweb/ibexa-bundle:dev-master

Afterward, you need to enable the bundle in config/bundles.php:

MugoWeb\IbexaBundle\MugoWebIbexaBundle::class => ['all' => true],

If you'd like to use the features location quick finder or Location query tester,
you would need to load the routes.yml file of this bundle. Tip: use a path prefix
to avoid path conflicts.

Tests

php bin/phpunit vendor/mugoweb/ibexa-bundle/tests/

Features

Location quick finder

For a given location ID, following path redirects to the
full view of the corresponding content object:

/location/{locationId}

Location query tester

It allows you to fetch Locations for a given LocationQuery string.

Use this path to access it:

/query

Log user hash generation

To enable add following to your service configuration:

# Enable to log user variation hashes
fos_http_cache.user_context.hash_generator:
class: MugoWeb\IbexaBundle\Service\DebugHashGenerator
arguments:
$cachePool: '@ibexa.cache_pool'

Commands

php bin/console ibexa:trash:purge

Command to purge items from the trash

QueryStringParser

Here is an example:

$query = QueryStringParser::getQueryObject(
'LocationQuery',
'ParentLocationId:123 and ContentTypeIdentifier:article',
'Field.article.publish_date:DESC',
20
);

LocationQuery and Query

Consider to use the QueryStringParser instead. A different way to generate the LocationQuery. You can use it then for the find or search service.
Here is an example:

$locationQuery = LocationQuery::build(
'Subtree:' . $parentLocation->pathString . ' and (ContentTypeIdentifier:article or ContentTypeIdentifier:folder ro ContentTypeIdentifier:blog)',
'Location\Priority: ASC',
5
);

No news yet.

This project has no reviews yet. Be the first one to review it!

No forum messages yet.