AutoAlias2

Fills empty aliases automatically

#1. Features

  • Makes page alias from its title if a user has left the alias empty
  • Supports transliteration
  • Contains an admin tool to fill aliases in existing pages
  • Several options affecting alias format

 

The main download link provided is curently for Cotonti >= 0.9.0. You can download this plugin for 0.6.x here: cot-autoalias2-2.0.2_5.7z.

#2. Installation

  1. Unpack to your_site/plugins
  2. Go to Administration => Plugins => AutoAlias2 and install it
  3. Configure the plugin

#2.1. How to auto-add aliases to old pages?

Go to Administration => Tools => AutoAlias2 and click "Create aliases from titles if missing".
 

#2.2. What's different from AutoAlias 1.x?

AutoAlias 1.x is a JavaScript alias advisor which fills the alias while you type in the title field. It doesn't check for duplicate aliases and is tweaked for Russian language.

AutoAlias 2.x runs on server side and fills the alias if it had been left empty by user. It corrects duplicate aliases and can fill aliases in previously added pages.
 

#2.3. Changelog

2.1.0: ported to Cotonti Siena

2.0.2: Fixed transliteration and character classes

2.0.1: Added separator choice and lowercase conversion options


1. Kingsley  2010-08-26 06:10
works like a charm, thank you :)
2. pieter  2010-08-26 13:44
Great, can you update old pages too? Without editing them?
3. Trustmaster  2010-08-26 14:34
Yes, go to Admin => Tools => AutoAlias2
4. McDuck  2010-08-26 21:04
некорректно работает транслит русского - в урл вставляются недопустимые символы, например: "ь" преобразовывается в апостроф. Символ "ы" не заменяется ничем
5. BlackMikeSG  2010-08-27 12:29
McDuck:
некорректно работает транслит русского - в урл вставляются недопустимые символы, например: "ь" преобразовывается в апостроф. Символ "ы" не заменяется ничем
найди в языковом файле /system/lang/ru/main.lang.php массив $sed_translit
и там можешь поменять эти символы.
6. Trustmaster  2010-08-27 20:20
Не надо ничего менять, исправлено в версии 2.0.2. Скачайте!
7. 3axap  2010-08-28 13:16
Хм.. Половине страниц алиасы сгенерировались, половине нет. Удаление плагина естессно не помогло. Вернул старую бд. Странный плагин. Пускай и полезный, но странно работающий
8. Trustmaster  2010-08-29 20:59
Он не генерирует алиасы для страниц, у которых алиасы не пусты.
9. BlackMikeSG  2010-08-31 12:35
Когда затачивал плагин под себя, удалял алиасы SQL-запросом))
10. 3axap  2010-09-12 18:55
Ну нубоват я, для фривольных sql запросов, тока по инструкции могу :). Думаю если на чистый сайт ставить, то все будет идеально работать.
11. Dayver  2012-01-03 23:36

Для работы сего плагина под версией 0.9.6 нужно в начало autoalias2.functions.php вставить строчку 

require_once cot_incfile('page', 'module');

12. ez  2012-01-16 19:02

TIP for coding:

There could be like double or triple separators like   a---b.
Adding code to prevent this is ez..   so it should be a-b

 

13. CrazyFreeMan  2014-08-10 17:11

Не працює якщо мова встановленна "українська", нічого не змінюється, ставив російську - все добре. (файл lang/ua/translit.ua.lang.php присутній)

 

В файлі локалізації (завантажив з цього сайту) потрібно додати

global $cot_translit,$cot_translitb;

і змінити назву масиву на 

$cot_translit = array(
'ці' => 'ci',

Alleen geregistreerde gebruikers kunnen reacties plaatsen.