Synonym term
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
For Drupal 7
EnglishAllows you to create human-readable URLs for terms and nodes.
After module is switched on the page adding/editing of the term will be available field "Synonym", using this field you can specify a synonym. When filling in the name of the term, the field "Synonym" is automatically filled (using Google Translate Api: translation from Russian to English). Synonym can be used to create human-readable URLs for terms or nodes on the page "patterns" of module Pathauto. On this page will be available two new patterns:
1) [node:node-synonym-path] to configure alias for nodes;
2) [term:term-synonym-path] to configure alias for terms.
If term has several parents, then alias will be created from the first parent, going on the list.
If node has several vocabularies/terms, as is the case with terms, alias will be created on the basis of the first term
the first vocabulary.
Example of use:
1) In the setting of pathauto for Taxonomy term paths for the vocabulary "Catalog" indicate a pattern:
catalog/[term:term-synonym-path].
For the type of node to which is added the vocabulary, specify a pattern
catalog/[node:node-synonym-path]/product[node:nid].html
2) Add a term to the vocabulary "Catalog": "мебель" (russian language). In the "Synonym" will appear automatically translate "furniture". Save.
The alias for the term "мебель" will http://SITE/catalog/furniture
3) Add material. Choose the term "мебель". Alias material will http://SITE/catalog/furniture/product1.html
If you do not choose a term, then the page address will http://SITE/catalog/product1.html
Dependencies:
1) Taxonomy
2) Pathauto
3) Token
ПозволÑет Ñоздавать ЧПУ Ð´Ð»Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð¾Ð² и нод, к которым добавлены данные термины.
ПоÑле включении Ð¼Ð¾Ð´ÑƒÐ»Ñ Ð½Ð° Ñтранице добавлениÑ/Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð° поÑвитÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ðµ поле "Synonym", в котором необходимо указать Ñиноним Ð´Ð»Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°. При заполнении имени термина, поле "Synonym" автоматичеÑки заполнÑетÑÑ (иÑпользуетÑÑ Google Translate Api). Синоним может быть иÑпользован Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ñ‡ÐµÐ»Ð¾Ð²ÐµÐºÐ¾-понÑтных адреÑов терминов или нод на Ñтранице "patterns" Ð¼Ð¾Ð´ÑƒÐ»Ñ Pathauto. Ðа Ñтой Ñтранице будут доÑтупны два новых шаблона:
1) [node:node-synonym-path] Ð´Ð»Ñ Ð½Ð°Ñтройки адреÑов нод;
2) [term:term-synonym-path] Ð´Ð»Ñ Ð½Ð°Ñтройки адреÑов терминов.
ЕÑли термин имеет неÑколько родителей, то Ð°Ð»Ð¸Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ Ñоздан на оÑнове первого родителÑ, идущего в ÑпиÑке.
ЕÑли нода имеет неÑколько Ñловарей/терминов, как и в Ñлучае Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð¼Ð¸, Ð°Ð»Ð¸Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ Ñоздан на оÑнове первого термина
первого ÑловарÑ.
Пример иÑпользованиÑ:
1) Ð’ наÑтройках pathauto Ð´Ð»Ñ Taxonomy term paths Ð´Ð»Ñ ÑÐ»Ð¾Ð²Ð°Ñ€Ñ "Catalog" указываем шаблон:
catalog/[term:term-synonym-path].
Ð”Ð»Ñ Ñ‚Ð¸Ð¿Ð° материала, к которому добавлен данный Ñловарь, указываем шаблон
catalog/[node:node-synonym-path]/product[node:nid].html
2) ДобавлÑем термин в Ñловарь "Catalog": "мебель". Ð’ поле "Synonym" автоматичеÑки поÑвитÑÑ Ð¿ÐµÑ€ÐµÐ²Ð¾Ð´ "furniture". СохранÑем.
ÐÐ´Ñ€ÐµÑ Ð´Ð»Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð° мебель будет http://SITE/catalog/furniture
3) ДобавлÑем материал. Выбираем термин "мебель". ÐÐ´Ñ€ÐµÑ Ð¼Ð°Ñ‚ÐµÑ€Ð¸Ð°Ð»Ð° будет http://SITE/catalog/furniture/product1.html
ЕÑли не выбрать термин, то Ð°Ð´Ñ€ÐµÑ Ñтраницы будет http://SITE/catalog/product1.html
Ð”Ð»Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ требуютÑÑ Ñледующие модули:
1) Taxonomy
2) Pathauto
3) Token
TODO
to add translation from other languages to English, using Google Translate Api.
