Search by

manuxi / sulu-admin-extras-bundle

manuxi

Admin UI extensions for Sulu CMS - Property Resolvers and List Field Transformers

Package info

github.com/manuxi/SuluAdminExtrasBundle

Language:JavaScript

Type:symfony-bundle

pkg:composer/manuxi/sulu-admin-extras-bundle

Statistics

Installs: 42

Dependents: 2

Suggesters: 0

Stars: 3

Open Issues: 0

v1.8.1 2026-03-11 20:34 UTC

This package is auto-updated.

Last update: 2026-09-12 20:12:24 UTC


README

php workflow License: MIT GitHub Tag Github Release Supports Sulu 3.0 or later

A bundle for Sulu CMS that adds useful tools like Content Types (Form Fields) and List Transformers (Visualizations) to the Admin UI.

This bundle combines and modernizes functionality from the former SuluContentTypesBundle and SuluTweaksBundle for Sulu 3.0.

English | 🇩🇪 Deutsch

📚 Features & Documentation

Detailed documentation for each feature can be found in the docs/ folder:

Property Types

List Transformers

Other

🚀 Installation

Requirement: Sulu CMS 3.0+

1. Install via Composer

composer require manuxi/sulu-admin-extras-bundle

2. Register Bundle

Add to config/bundles.php:

return [
    Manuxi\SuluAdminExtrasBundle\SuluAdminExtrasBundle::class => ['all' => true],
];

3. Import backend routes

The interactive public_holidays field uses server-side proxy endpoints. Import the bundle routes in config/routes_admin.yaml:

SuluAdminExtrasBundle:
    resource: '@SuluAdminExtrasBundle/Resources/config/routes.yaml'

This registers /admin/api/public-holidays/countries, /subdivisions/{countryCode}, and /fetch. Without this import the JavaScript field loads but its API requests return 404.

4. Admin Assets Setup

To load the JavaScript components in the Sulu Admin, you must adjust your project's asset configuration.

A) Update assets/admin/package.json Open the file assets/admin/package.json in your project root. Add or update the dependency to point to the bundle's resources:

{
  "dependencies": {
    "sulu-admin-extras-bundle": "file:../../vendor/manuxi/sulu-admin-extras-bundle/src/Resources"
  }
}

B) Update assets/admin/app.js Open assets/admin/app.js (or index.js) and import the bundle:

import 'sulu-admin-extras-bundle';

C) Install & Build Run the following commands to compile the admin assets:

cd assets/admin
npm install
npm run build

Compatibility with other Sulu admin bundles

Only one JavaScript bundle should register a given Sulu field key. In particular, do not import the JavaScript of sulu-testimonials-bundle in the same project when this bundle is enabled: both bundles register star_rating and the Sulu Admin will stop after login with:

Error: The key "star_rating" has already been used for another field

Keep sulu-admin-extras-bundle as the sole JavaScript provider for the shared star-rating fields. The TestimonialsBundle can still be installed and used for its server-side routes, controllers, templates, and entities.

⚙️ Configuration

You can copy the default configuration file:

cp vendor/manuxi/sulu-admin-extras-bundle/src/Resources/config/default.yaml config/packages/sulu_admin_extras.yaml

See docs for detailed configuration options.