PHPackages                             arillo/silverstripe-utils - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. arillo/silverstripe-utils

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

arillo/silverstripe-utils
=========================

Utils and helpers for SilverStripe CMS.

0.1.0(6y ago)01.7kMITPHPCI failing

Since Nov 8Pushed 6y ago4 watchersCompare

[ Source](https://github.com/arillo/silverstripe-utils)[ Packagist](https://packagist.org/packages/arillo/silverstripe-utils)[ Docs](https://github.com/arillo/silverstripe-utils)[ RSS](/packages/arillo-silverstripe-utils/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (2)Versions (13)Used By (0)

Arillo\\Utils
=============

[](#arilloutils)

[![Latest Stable Version](https://camo.githubusercontent.com/9b5eb5cf9402c68ac6a59a5dcf0d765f66896c4ce02ce742a29ebc73af1bd461/68747470733a2f2f706f7365722e707567782e6f72672f6172696c6c6f2f73696c7665727374726970652d7574696c732f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/arillo/silverstripe-utils) [![Total Downloads](https://camo.githubusercontent.com/07af0ad3b66dc979d36421747c7f8aa32635d1f9a31898baf835ac0cf90d5d82/68747470733a2f2f706f7365722e707567782e6f72672f6172696c6c6f2f73696c7665727374726970652d7574696c732f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/arillo/silverstripe-utils)

Utils and helpers for SilverStripe CMS.

### Requirements

[](#requirements)

SilverStripe CMS ^4.0

Installation
------------

[](#installation)

```
composer require arillo/silverstripe-utils
```

Usage
-----

[](#usage)

This module is a bundle of classes to alter functionality in the CMS.

### Arillo\\Utils\\HiddenLeftAndMain

[](#arilloutilshiddenleftandmain)

Attach `Arillo\Utils\HiddenLeftAndMain` to any LeftAndMain subclass you want to hide, e.g. in `config.yml`:

```
SilverStripe\CampaignAdmin\CampaignAdmin:
  extensions:
    - Arillo\Utils\HiddenLeftAndMain

```

### Arillo\\Utils\\FluentFilteredHelper

[](#arilloutilsfluentfilteredhelper)

If you use `silverstripe-fluent` with `TractorCow\Fluent\Extension\FluentFilteredExtension` you can add `Arillo\Utils\FluentFilteredHelper` to your translated DataObject and it will attach all Locales on record creation and deletes locale entries on record deletion. In config, e.g. add:

```
MyDataObject:
  # will create locale entries for this record on first save, default: true
  auto_create_locales: true

  # will delete locale entries on record deletion, default: false
  auto_delete_locales: true
  extensions:
    - 'TractorCow\Fluent\Extension\FluentFilteredExtension'
    - 'Arillo\Utils\FluentFilteredHelper'

```

### Arillo\\Utils\\FluentHelper

[](#arilloutilsfluenthelper)

With `Arillo\Utils\FluentHelper::force_delete` you can improve UX in CMS while record deletion. At the moment Fluent forces you to delete a page in each Locale, to remove it from SiteTree. Example usage:

```
