Download the PHP package agence-raid/sulu-site-configuration-bundle without Composer
On this page you can find all versions of the php package agence-raid/sulu-site-configuration-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agence-raid/sulu-site-configuration-bundle
More information about agence-raid/sulu-site-configuration-bundle
Files in agence-raid/sulu-site-configuration-bundle
Package sulu-site-configuration-bundle
Short Description Sulu CMS bundle for managing per-webspace site configuration
License MIT
Informations about the package sulu-site-configuration-bundle
Sulu Site Configuration Bundle
Adds a Configuration tab in the Sulu webspace view to manage per-webspace, per-locale site settings (phone, email, social links, logo, etc.) stored as a flexible JSON entity.
Installation
1. Require the package
2. Register the bundle
In config/bundles.php:
3. Register the routes
In config/routes/admin.yaml:
4. Run the migration
5. Create your form
Create config/forms/webspace_configs/default.xml with the fields you need:
To override the form for a specific webspace, create config/forms/webspace_configs/{webspace-key}.xml with key site_configuration_{webspace-key}.
6. Grant permissions
Go to Settings → Roles in the Sulu admin and grant {webspace-key}.configuration permissions to the relevant roles.
Usage
In Twig templates
In PHP services
All versions of sulu-site-configuration-bundle with dependencies
sulu/sulu Version ^3.0
symfony/framework-bundle Version ^7.0
doctrine/orm Version ^3.0
symfony/uid Version ^7.0