SilverStripe Development Tools: Tasks

https://tal-langfassung.kooperative-web.de

dev → tasks

MigrateContentToElement

When installing Elemental this task converts content in the $Content field to an ElementContent
Run task

Reset Globally Enabled elements

Reset individual elements 'AvailableGlobally' setting via the YAML config
Run task

Hydrate the focuspoint extension image size cache

Run this task to cache all image sizes, and speed up image generation
Run task

Login Session Garbage Collection Task

Removes expired login sessions and “remember me” hashes from the database
Run task

Invalidate All Login Sessions Task

Removes all login sessions and "remember me" hashes (including yours) from the database
Run task

Convert Translatable > Fluent Task

Migrates site DB from SS3 Translatable DB format to SS4 Fluent.
Run task

Initial DataObject localisation (excludes SiteTree)

Intended for projects which already have data when Fluent module is added. This dev task will localise / publish all DataObjects in the default locale. Locale setup has to be done before running this task. Pass limit=N to limit number of records to localise. Pass publish=1 to enable publishing of localised Versioned DataObjects. Regardless, Versioned DataObjects which were not already published will not be published, only localised. DataObjects which were already localised will always be skipped. This class may be extended to create custom initialization tasks targeting or excluding specific classes.
Run task

Migrate svg files into the svg image file type

Migrates svgs stored as the general file type into the new svg image type
Run task

Clear InterventionBackend cache

Clears caches for InterventionBackend
Run task

i18n Textcollector Task

Traverses through files in order to collect the 'entity master tables'
stored in each module.

Parameters:
- locale: Sets default locale
- writer: Custom writer class (defaults to i18nTextCollector_Writer_RailsYaml)
- module: One or more modules to limit collection (comma-separated)
- merge: Merge new strings with existing ones already defined in language files (default: TRUE)
Run task

Migrate Focus-Point Field-Values.

Migrate Focus-Point fields from v2 to v3 or vice-versa.
Run task

Initial SiteTree localisation

Intended for projects which already have some Pages when Fluent module is added. This dev task will localise / publish all Pages in the default locale. Locale setup has to be done before running this task. Pass limit=N to limit number of records to localise. Pass publish=1 to force publishing of localised Pages. Regardless, Pages which were not already published will not be published, only localised. Pages which were already localised will always be skipped.
Run task