manuxi / sulu-admin-extras-bundle
Admin UI extensions for Sulu CMS - Property Resolvers and List Field Transformers
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:symfony-bundle
pkg:composer/manuxi/sulu-admin-extras-bundle
Requires
- php: ^8.1
- sulu/sulu: ^3.0
- symfony/config: ^5.4 || ^6.0 || ^7.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0
- symfony/translation-contracts: ^2.5 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- jackalope/jackalope-doctrine-dbal: ^1.3.4
- phpunit/phpunit: ^9.5 || ^10.0
README
English | ๐ฉ๐ช Deutsch
A bundle for Sulu CMS that adds useful 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.
โจ Features
Content Types (Form Fields)
- Colour Select - Colour selection with colour display for better visualisation
- Number With Default - Number with storable default value
- Slider Range - Slider
- Star Rating - Selection field for star rating
List Transformers (list view)
- Percent Bar - Percentage bar
- Publish State - Status display in separate column (default is hidden)
- Ghost Locale - Language status in separate column (hidden by default)
- Type Colour - Colour display for colour categorisation
- Star Rating - Star rating
๐ Requirements
- PHP 8.2+
- Sulu CMS 3.0+
- Symfony 6.4+ / 7.0+
๐ Installation
Requirement: Sulu CMS 3.0+
Step 1: Install via Composer
composer require manuxi/sulu-admin-extras-bundle
Step 2: Register Bundle
Add to config/bundles.php:
return [ Manuxi\SuluAdminExtrasBundle\SuluAdminExtrasBundle::class => ['all' => true], ];
Step 3: 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 --save classnames
npm install
npm run build
๐งถ Configuration
Create config/packages/sulu_admin_extras.yaml
(or copy it from the bundle: vendor/manuxi/sulu-admin-extras-bundle/src/Resources/config/packages/sulu_admin_extras.yaml)
and modify it to your needs.
See detailed configuration options in the detailed documentations in docs/ (linked above under features).
๐ฉโ๐ณ Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
๐ License
This bundle is released under the MIT License.