Closed (fixed)
Project:
XML sitemap
Version:
5.x-2.x-dev
Component:
xmlsitemap_term
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2008 at 23:15 UTC
Updated:
12 Dec 2008 at 23:32 UTC
This method correctly looks up the aliases for taxonomy terms. The LEFT JOIN was only working for forum and non-taxonomy module terms.
| Comment | File | Size | Author |
|---|---|---|---|
| xmlsitemap_term.patch | 2.17 KB | nicholasthompson |
Comments
Comment #1
marcoBauli commented+1 for this patch
applies and fixes the terms alias issue also here
Comment #2
avpadernoComment #3
avpadernoI would rather prefer to use a single database query rather than two queries like in the patch (the second query is made from the function that returns the alias of the path), if that is possible.
I will check on that.
Comment #4
avpadernoComment #5
avpadernoThe following line should be changed:
$term->aliasis used in the call toxmlsitemap_url()even it is not set (therefore PHP would report a property doesn't exist message error. Like the code is, there is no even the need to use such object property when it is possible to use the variable$alias.Comment #6
avpadernoThe code has been changed in CVS.
The function
_xmlsitemap_term_links()has been rewritten like:The code of the patch has been corrected, and optimized.
It's not possible to execute a single query, and at the same time get the alias for the taxonomy term for all the cases; the module code like it was before was already executing two separate queries (one was hidden in the call to the drupal function), so there isn't a lost of performance. The difference is that now the code is working like it should, and the alias of the terms are used whenever the term is relative to a forum, or not.
Like the usual, wait 12 hours, and you will get a new download file.