Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
qbnflaco CreditAttribution: qbnflaco commentedI'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.
Comment #2
ar-jan CreditAttribution: ar-jan commentedI 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).
Comment #3
Agileware CreditAttribution: Agileware commentedIn 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.
Comment #4
j4 CreditAttribution: j4 commentedAgileware,
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
Comment #5
Agileware CreditAttribution: Agileware commentedThere 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.
Comment #6
Agileware CreditAttribution: Agileware commentedVersion 6.x-1.1 is now up with the same changes as 5.x-1.2.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
drupdruppalpal CreditAttribution: drupdruppalpal commentedHi,
the same problem with Latin characters like (á ü ñ)
Comment #9
drupdruppalpal CreditAttribution: drupdruppalpal commentedHi,
any way for replace Latin characters like (á é í ó ú)?
Comment #10
gmgraca7 CreditAttribution: gmgraca7 commentedHow did you resolve this issue? I'm having the same problem on an upgrade from 5 to 6.
Comment #11
Agileware CreditAttribution: Agileware commentedMight 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