pathauto et les accents

Catégories:

Bonjour,

Y’a-t-il une solution pour que pathauto génère un alias sans accent afin des url dont les caractères accentués sont remplacés par leur «équivalent» non accentué ?

Merci.

#

A priori c’est gere en natif par pathauto et c’est dans la doc :

**Transliteration support:

If you desire transliteration support in the creation of URLs (e.g. the
replacement of À with A) then you will need to rename the file
i18n-ascii.example.txt to i18n-ascii.txt

You can then freely edit the i18n-ascii.txt without worrying that your changes
will be over-written by upgrades of Pathauto.

Donc en gros bin il faut juste renommer le fichier i18n-ascii.example.txt en i18n-ascii.txt

#

Merci, n’ayant rien vu dans les paramètres je n’avais pas été voir la doc :(

#

Après avoir renommé le fichier en i18n-ascii.txt
Dans administrer > Pathauto > Paramètres généraux
cocher la case Transliterate prior to creating alias

Syndiquer le contenu