Transliteration and Pathauto

This module can be enabled from your main modules admin list. The current version is 6.x-2.1. Go ahead and enable it on your site. The module does not have a configuration admin page in your Drupal site, but you can learn more about its configuration and what it does through its Drupal project page: http://drupal. org/project/transliteration.

In a nutshell, this module provides transliteration resources for other Drupal modules including Boost, and also sanitizes your file upload names. For example, if a user uploads a file to your site using the Drupal attachment core module and the filename contains special non-ASCII characters, this module, if enabled, will convert and try to represent that data in US-ASCII characters, which are the universally accepted character codebase.

You can also use Transliteration along with the Pathauto module and it works similarly to its configuration for file uploads. In your Pathauto settings, you can enable Transliteration prior to creating any automatic alias. In order to do this you'll need to add an i18n-ascii.txt file to the Pathauto directory. You can view instructions for configuring this functionality by going to Site building | URL aliases | Automated alias settings and then expanding the General settings in the Pathauto module configuration. You will see a checkbox next to Transliterate prior to creating alias.

[Zi Transliterate prior to creating alias

When a pattern includes certain characters (such as those with accents) should Pathauto attempt to transliterate them into the ASCII-96 alphabet? Transliteration is determined by the ยก18n-ascii.txt file in the Pathauto directory.

You can find this i18n-ascii. txt file by doing a search for it on http: //drupal. org/. Using Google search, one example of the file is here: http: //textpattern. googlecode.com/svn/development/crockery/textpattern/lib/i18n-ascii.txt. Download the file and copy it to your Pathauto module directory. Once you do this, you can enable the Transliterate prior to creating alias setting. When you upload this file, make sure to rename it i18n-ascii. txt so that it's recognized by the Pathauto and Transliteration modules. Again, much of this will be your personal preference and decision as to whether you want to use the Transliteration module in your site. If you do, it will open up various configuration possibilities for your Boost module. It's good to understand generally how all of these modules work hand in hand to help optimize your site.

Let's take a look at some advanced Boost module settings and their configuration.

Was this article helpful?

0 0

Post a comment