This module is exactly what I've been looking for, except that my vocabulary terms have spaces commas and periods. I'd like to change the spaces into underscores and delete the commas and periods.

So, if my term is "James Madison, Jr." I'd like it to display in the URL as "james_madison_jr" instead of "James%20Madison%2C%20Jr."

Is there any way to do this?

The admin page says "Define the function taxonomy_redirect_custom_term_path($term, $path) to customise further."

Where do I define this function and where would I call it? (You can tell I'm a little new at this.)

Thanks,

JV

Comments

qbnflaco’s picture

I'm having the same issue. It's using taxonomy term, but some of the terms have spaces which get replaced to "Taxonomy+Term" and would prefer a drupal style "taxonomy-term". Is there a patch I can apply to get this working like this?

BTW, I'm running it on drupal 5.

ar-jan’s picture

Category: support » feature

I second this request. It would be great if you could tie the module in with Transliteration to achieve this - this is the only thing keeping me from using it right now :)

(changing to feature request).

Agileware’s picture

In the 5.x-1.2 version there is the ability to set a character that will replace all spaces and + characters in the path (eg an underscore or dash).

There is also the ability to specify a list of characters to delete from the path. (For reference the deletion of the specified characters is done before the spaces are replaced)

These changes will be added to the Drupal 6 version asap.

j4’s picture

Agileware,

I was thrilled to see that the latest version for drupal 5 will answer my needs, but i am getting an error after installation and after trying to change the settings.

* user warning: Unknown column 'tid' in 'where clause' query: DELETE FROM taxonomy_redirect WHERE vid = '1' AND tid is NULL in /home/roundtr7/public_html/includes/database.mysql.inc on line 172.
* user warning: Unknown column 'tid' in 'field list' query: INSERT INTO taxonomy_redirect (vid, tid, module, path, separator_replace, remove_text, filter) VALUES ('1', NULL, '', '!name', '-', '', '1') in /home/roundtr7/public_html/includes/database.mysql.inc on line 172.

Please help!! My site is to be ready tomorrow for review by client and I desperately need this to work!
Thank you.

Jaya

Agileware’s picture

There may be an issue with the install file. I will look into it.

For now try going to yoursite/update.php and running update 3 for taxonomy_redirect.

Agileware’s picture

Status: Active » Fixed

Version 6.x-1.1 is now up with the same changes as 5.x-1.2.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

drupdruppalpal’s picture

Hi,
the same problem with Latin characters like (á ü ñ)

drupdruppalpal’s picture

Status: Closed (fixed) » Active

Hi,
any way for replace Latin characters like (á é í ó ú)?

gmgraca7’s picture

How did you resolve this issue? I'm having the same problem on an upgrade from 5 to 6.

Agileware’s picture

Status: Active » Fixed

Might look at going with what ArjanLikesDrupal said in #2 and integrate with transliteration module.

This issue was originally about something else though, which has been fixed
so I have created an issue for this at #705358: Integrate with transliteration module

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.