PHPackages                             derralf/silverstripe-fluent-tweaks - 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. derralf/silverstripe-fluent-tweaks

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

derralf/silverstripe-fluent-tweaks
==================================

add tweaks to fluent

0531[2 issues](https://github.com/derralf/silverstripe-fluent-tweaks/issues)PHP

Since Jul 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/derralf/silverstripe-fluent-tweaks)[ Packagist](https://packagist.org/packages/derralf/silverstripe-fluent-tweaks)[ RSS](/packages/derralf-silverstripe-fluent-tweaks/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Fluent Tweaks
==========================

[](#silverstripe-fluent-tweaks)

Simple experimental to add some extra options to Fluent Locale:

- set order/sorting
- hide from LocaleMenu
- hide from MetaTags

Private project, no help/support provided

Requirements
------------

[](#requirements)

- silverstripe/cms ^4.2
- silverstripe/vendor-plugin: ^1.0
- tractorcow/silverstripe-fluent ^4 || ^5

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

[](#installation)

- Install the module via Composer

    ```
    composer require derralf/silverstripe-fluent-tweaks

    ```
- In your config.yml (or fluentconfig.yml, etc):

    ```
    TractorCow\Fluent\Model\Locale:
      extensions:
      - Derralf\FluentTweaks\LocaleExtension
      default_sort: 'Sort ASC, "Fluent_Locale"."Locale" ASC'
      summary_fields:
      - Sort
      - Hidden

    Derralf\FluentTweaks\LocaleExtension:
      HiddenTitlePrefix: '* '
      HiddenTitleSuffix: ' (!)'

    ```

Configuration &amp; Templating
------------------------------

[](#configuration--templating)

- Go to Locale Admin and add value for sorting to each locale
- You may use the same value for multiple locales to create "groups" awithin which alphanumeric sorting takes place
- select the "Hidden" chackbox to hide the Locale from the frontend
- optionally go to security and define which user groups/editors can see hidden locales

**Caution:** Published Pages/Contents for "hidden" Locales will still be public/accessible anyway. They are just hidden from the Language Menu and/or Meta Tags (alternate links).

**Caution: NEVER EVER** name the function `FilteredLocales()` if you want to use `FluentFilteredExtension`on SiteTree :)

In your Page.php

```
        // custom FILTERING/sorting/order for Locales
        // original: silverstripe-fluent/src/Extension/FluentExtension.php
        public function PublicVisibleLocales()
        {
            $data = [];
            if (Locale::getCached()) {
                foreach (Locale::getCached() as $localeObj) {

                    $locale = $localeObj->getLocale();

                    /** @var Locale $localeObj */
                    $info = $this->owner->LocaleInformation($localeObj->getLocale());

                    // optional: add Hidden flag, maybe for templating/styling
                    $info->Hidden = $localeObj->Hidden;

                    // optional/test: add ID for sorting
                    $info->ID = $localeObj->ID;

                    // optional: add bootstrap linking mode 'active'
                    $info->LinkingMode = ($info->LinkingMode == 'current') ? ($info->LinkingMode . ' active') : $info->LinkingMode;

                    // Fluent 4 only (not needed with Fluent 5): is page published in Locale? -> Filter for alternate links in FluentSiteTree_MetaTags.ss
                    // $info->isPublished = ($this->owner->isPublishedInLocale($locale)) ? true : false;

                    // if Hidden-Field exists on object and Hidden is set: continue and don't add to array
                    // or check if member can view hidden locales
                    // and add prefix/suffix, if defined
                    if ($localeObj->Hidden) {
                        if (!$localeObj->canViewHidden()) {
                            continue;
                        }
                        if ($localeObj->Hidden && $prefix = Config::inst()->get('Derralf\FluentTweaks\LocaleExtension', 'HiddenTitlePrefix')) {
                            $info->Title = $prefix . $info->Title;
                            $info->Language = $prefix . $info->Language;
                        }
                        if ($localeObj->Hidden && $suffix = Config::inst()->get('Derralf\FluentTweaks\LocaleExtension', 'HiddenTitleSuffix')) {
                            $info->Title = $info->Title . $suffix;
                            $info->Language = $info->Language . $suffix;
                        }
                    }
                    // add new data to array
                    $data[] = $info;
                }
            }
            return ArrayList::create($data);
            // return ArrayList::create($data)->sort('ID ASC');
        }

```

### Templates

[](#templates)

Override LocaleMenu.ss in templates/Includes/LocaleMenu.ss

```
# Fluent 4

Locale &rarr;

					$Title.XML

```

Override FluentSiteTree\_MetaTags.ss in templates/Includes/FluentSiteTree\_MetaTags.ss

```
# FLuent 5

# Fluent 4

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6353682e85ce5b5f238126c18b0e13770f0e0ffaf9c9d24588cdd2a84ab9a8b?d=identicon)[derralf](/maintainers/derralf)

---

Top Contributors

[![wernerkrauss](https://avatars.githubusercontent.com/u/1043925?v=4)](https://github.com/wernerkrauss "wernerkrauss (2 commits)")[![derralf](https://avatars.githubusercontent.com/u/1495867?v=4)](https://github.com/derralf "derralf (1 commits)")

### Embed Badge

![Health badge](/badges/derralf-silverstripe-fluent-tweaks/health.svg)

```
[![Health](https://phpackages.com/badges/derralf-silverstripe-fluent-tweaks/health.svg)](https://phpackages.com/packages/derralf-silverstripe-fluent-tweaks)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
