Download the PHP package alengo/alengo-webspace-settings-bundle without Composer
On this page you can find all versions of the php package alengo/alengo-webspace-settings-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package alengo-webspace-settings-bundle
Sulu AlengoWebspaceSettingsBundle
Sometimes you need to store values that are not directly related to a specific page or content type, but rather to the entire webspace. This Sulu bundle provides a way to manage such settings in a structured manner.
Requirements
- Sulu 3.x
- PHP 8.2
- Symfony >=7.2
Install the bundle
Execute the following composer command
Enable the bundle
Enable the bundle by adding it to the list of registered bundles in the /config/bundles.php file of your project:
Configure the Bundle
Set the following config in your /config/routes/sulu_admin.yaml
Make sure you've set the correct permissions in the Sulu backend for this bundle!
Settings > User Roles
Type Selection
Set the property types you want to provide in /config/packages/alengo_webspace_settings.yaml
or execute the following command to copy it automatically:
Twig Extension
The bundle provides a Twig extension to render the webspace settings in your templates.
You can use the webspaceSettings function to retrieve the settings for a specific webspace and typeKey.
with localization
Blocks
The bundle supports blocks for webspace settings. Copy the webspace_settings_blocks.xml in your project to the following path:
or execute the following command to copy it automatically:
Adjust the blocks as needed in your project.
Events
The bundle dispatches the following events:
WebspaceSettingsCreatedEventWebspaceSettingsModifiedEventWebspaceSettingsRemovedEvent
Create an event listener in your project to listen to these events and perform any necessary actions when webspace settings are created or updated.
It is recommended to use the settings type Event.
Upgrade
Please read the UPGRADE.md file for upgrade instructions.
All versions of alengo-webspace-settings-bundle with dependencies
php Version ^8.2
sulu/sulu Version ^3.0
symfony/config Version ^7.2
symfony/dependency-injection Version ^7.2
symfony/framework-bundle Version ^7.2
symfony/http-foundation Version ^7.2
symfony/http-kernel Version ^7.2
symfony/serializer Version ^7.2
symfony/twig-bundle Version ^7.2