Better slug transliterator for Silverstripe with accent folding
Slug generator with accent folding for Silverstripe CMS
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
composer require dariuszp/silverstripe-betterslug
// or if you have .phar package
./composer.phar require dariuszp/silverstripe-betterslug
When you create page with title like this:
ΤάÏÏÎµÏ Î±ÏομικÎÏ Î¼Îµ γÎμιÏη ÏοÏÏοκαλÎÎ½Î¹Î±Ï ÎºÏÎÎ¼Î±Ï ÎºÎ±Î¹ γλÏ
ÎºÏ ÏοÏÏοκάλι
It will be translated to:
tartes-atomikes-me-gemisi-portokalenias-kremas-kai-gliko-portokali
Istead of page-41 like before.
In case some characters are not handled, you can further configure module by add your own translation rules. For example:
_config.yml
BetterSlug:
rulesets:
symbols:
active: true
map:
â: ubrella
â: cloud
This will turn:
When you see dark â, bring an â!
Into:
when-you-see-dark-cloud-bring-an-ubrella
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem