Machine name from Title
Machine name being edited

Safeword adds a new Field type to Drupal 7: the "Name/Machine Name" combination. This field type can be useful for storing public-facint text and an internal "short" name, similar to the way that Content Type labels and machine names are used in the Drupal administration UI.

Safeword also uses the new 'Machine Name' FormAPI element in Drupal 7 to automatically suggest a machine name based on the text entered into the human-readable field.

Why bother using it? Using Token, Pathauto, and Auto NodeTitles, Safeword can be used as a replacement for Drupal's standard "Title" field, allowing content editors to create a visitor-friendly title with a customizable URL-safe "short" version that's used to build path aliases. The short URL-friendly machine name can also be used as a Views argument. Finally, it makes your Content Type administration page just a tiny bit cooler.

Features

Can use the node Title field as the source of the machine name.

Can provide it's own text field as the source of the machine name.

Machine name field is shown next to the source field, clicking 'Edit' makes the machine name editable in it's own field.

Option to show a live preview of the full path to the node while the machine name part of it is being edited.

Option to require machine names to be unique per content type.

Option to convert accented characters like øéåî to Roman letter equivalents, uses integration with the Transliteration module.

Can remove HTML intelligently without leaving 'p', 'div', etc. in the machine name.

https://drupal.org/project/transliteration

Similar Modules

Machine Name

Machine Name module adds a field type into which the user enters a machine name, it's main function is to validate that the input conforms to the machine name format.

Safeword module is different to Machine Name module as it provides a standard text field and when text is input displays a matching machine name field which automatically converts the text into a machine name formatted version, which can also be hand edited.

Project Information

Downloads