Support URL Alias
chowmein - January 5, 2007 - 01:43
| Project: | Taxonomy HTML |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
There should be an option to convert the URLs in the menu to their alias, if one exist.
I've added the follwing lines to the module to get this effect.
<?php
$node_id = db_result(db_query("Select n.nid from {term_node} n where n.tid = ". $term->tid));
$alias = drupal_get_path_alias('node/'.$node_id);
$output .= '<li class="' . $class . '">' . l($term->name .($showcounts ? ' ('. $term->count .')' : ''), $alias, ($showcounts ? array("title" => format_plural($term->count, '1 item', '%count items')) : array()));
?>I'm not familiar with how to add an option to the module's admin.

#1
The project page says this module is not being maintained any longer. If you really want it over the alternatives, let me know because I'm sure Gabor would let me have it.