ezsystems/ezplatform-admin-ui
Administration interface bundle for eZ Platform: provides the back‑office UI for managing content, users and settings. Includes navigation, dashboards, content editing screens and related assets, integrating with the eZ Platform/Legacy stack for day‑to‑day site administration.
Installation Add the bundle to your Laravel-based eZ Platform project via Composer:
composer require ezsystems/ezplatform-admin-ui
Ensure EzSystems\EzPlatformAdminUiBundle\EzPlatformAdminUiBundle is enabled in config/bundles.php.
Basic Setup
php bin/console doctrine:migrations:migrate
php bin/console cache:clear
config/packages/ez_platform_admin_ui.yaml (default config is minimal; extend as needed).First Use Case
Access the admin UI at /admin (or your configured route). Verify the dashboard loads and test basic CRUD operations (e.g., creating a content type or content item).
Content Management
ezplatform-admin-ui templates to customize the UI (e.g., override content/edit.html.twig).config/packages/ez_platform_admin_ui.yaml to manage content states (e.g., draft → published).Content Type Customization
config/content_types/my_custom_type.yaml).ezplatform-admin-ui field types (e.g., ezrichtext, ezimage) or create custom ones by implementing EzSystems\EzPlatformAdminUi\FieldType\FieldTypeInterface.Permissions & Roles
config/packages/security.yaml to restrict access to admin features (e.g., ROLE_ADMIN for full access).ezplatform-admin-ui permission system to scope actions (e.g., ezpublish.siteaccess.group.edit).API Integration
ezpublish-api) for custom logic. Example:
use EzSystems\EzPlatformAdminUi\API\Repository\ContentService;
$content = $contentService->createContent($contentType, $parentLocation);
Theming & Assets
templates/bundles/EzSystemsEzPlatformAdminUi/ to modify the UI.custom_admin.css to assets/admin/).Cache Issues
php bin/console cache:clear --env=prod
php bin/console ezplatform:cache:clear
--no-debug flag in development to avoid cache conflicts.Field Type Mismatches
ezplatform-admin-ui field types. Example error:
[Ez\Publish\API\Repository\Exceptions\InvalidArgumentException] Field type "ezcustom" is not supported.
ezstring for text).Permission Denied
security.yaml and ez_platform_admin_ui.yaml for correct role mappings. Example:
# security.yaml
role_hierarchy:
ROLE_ADMIN: [ROLE_EZPUBLISH_ADMIN]
Database Schema Conflicts
php bin/console doctrine:schema:validate to check for schema issues after migrations.ezplatform-admin-ui’s schema updates sparingly; prefer manual migrations for complex changes.Debugging
config/packages/dev/ez_platform_admin_ui.yaml:
debug: true
ezplatform-admin-ui profiler toolbar (enabled by default in dev) to inspect API calls and performance.Custom Field Types
EzSystems\EzPlatformAdminUi\FieldType\AbstractFieldType for reusable field logic. Example:
namespace App\FieldType;
use EzSystems\EzPlatformAdminUi\FieldType\AbstractFieldType;
class CustomFieldType extends AbstractFieldType {
public function getName() { return 'ezcustom'; }
// Implement render(), validate(), etc.
}
services.yaml:
services:
App\FieldType\CustomFieldType:
tags: ['ezplatform_admin_ui.field_type']
Performance
ez_platform_admin_ui.yaml:
list:
max_items: 50
Localization
translations/messages.en.yaml:
ezplatform_admin_ui:
content:
create: "Create New Item (Custom)"
Testing
ezplatform-admin-ui’s functional tests as a baseline. Example:
$this->client->request('GET', '/admin/content/create');
$this->assertResponseIsSuccessful();
$repository = $this->createMock(ContentService::class);
$this->container->set('ezpublish.api.repository', $repository);
How can I help you explore Laravel packages today?