brnfrts / brnfrtssulu
Some addons for the Sulu CMS
0.0.2
2024-06-12 16:26 UTC
Requires
- php: ^7.4 || ^8.0
- sulu/sulu: ^2.3
README
Description
This repository contains various addons for the Sulu CMS.
Installation
You can install this package via Composer.
- Run the following command in your terminal:
composer require brnfrts/brnfrtssulu
- Add this to your services.yaml file:
#BrnfrtsSulu import
imports:
- { resource: '../src/BrnfrtsSulu/Resources/config/services.yaml' }
Usage
Available Commands:
Rename Media Files Command
This command renames media files based on their titles in the Sulu CMS.
php bin/console brnfrts:rename-media-files
Regenerate Media Images Command
This command regenerates images for all media in the Sulu CMS. If you used above command to rename media files, all possible image sizes can be generated automatically with this command.
php bin/console brnfrts:regenerate-media-images
php -d memory_limit=5G bin/console brnfrts:regenerate-media-images #if you hit a memory limit
Caution
As always: Make a backup first of your database and media files before using these commands.