2017 © Pedro Peláez
 

silverstripe-module silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

image

dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  • Tuesday, April 12, 2016
  • by dariuszp
  • Repository
  • 1 Watchers
  • 4 Stars
  • 376 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

silverstripe-betterslug

Slug generator with accent folding for Silverstripe CMS, (*1)

This module will provide better text to slug translation for silverstripe by replacing very basic transliterator with cocur/slugify module: https://github.com/cocur/slugify, (*2)

Installation:

  composer require dariuszp/silverstripe-betterslug
  // or if you have .phar package
  ./composer.phar require dariuszp/silverstripe-betterslug

Usage

When you create page with title like this:, (*3)

Τάρτες ατομικές με γέμιση πορτοκαλένιας κρέμας και γλυκό πορτοκάλι

It will be translated to:, (*4)

tartes-atomikes-me-gemisi-portokalenias-kremas-kai-gliko-portokali

Istead of page-41 like before., (*5)

In case some characters are not handled, you can further configure module by add your own translation rules. For example:, (*6)

_config.yml, (*7)

BetterSlug:
  rulesets:
    symbols:
      active: true
      map:
        ☂: ubrella
        ☁: cloud

This will turn:, (*8)

When you see dark ☁, bring an ☂!

Into:, (*9)

when-you-see-dark-cloud-bring-an-ubrella

The Versions

12/04 2016

dev-master

9999999-dev https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

11/03 2016

dev-develop

dev-develop https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

11/03 2016

0.5.0

0.5.0.0 https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

11/03 2016

0.3.0

0.3.0.0 https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

11/09 2015

0.2.1

0.2.1.0 https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

07/09 2015

0.2.0

0.2.0.0 https://github.com/dariuszp/silverstripe-betterslug

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak

silverstripe slug accent ss_transliterator folding

07/09 2015

0.1.0

0.1.0.0

Better slug transliterator for Silverstripe with accent folding

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Dariusz Półtorak