Hello,
I've tried to add pattern [termalias]/[nid] for my nodes, but it seems that 'termalias' always empty. My nodes always saved as '/7', '/8' etc. But I want they saved as 'news/7', 'news/8' — where 'news' — is alias for node category.
I have inspect source code of the token.module, but I can't find any marks of termalias token. Could you help me? Is this pathauto bug or token module?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pathauto_termalias2.patch | 1.2 KB | beholder |
| #2 | pathauto_termalias.patch | 1.18 KB | beholder |
Comments
Comment #1
gregglesThe termalias is provided not by the token module but by the pathauto module.
Hopefully that can help you in debugging this issue. I haven't used termalias on 6.x yet myself nor have I heard feedback from others whether it is working or not.
Comment #2
beholder commentedIt seems that I have found this bug with aliases. There are mistakes in queries: first need to be
db_queryinstead ofdb_query_range; and second uses arguments fordb_query_range, but it's justdb_querytoo. Please, see my patch.Comment #3
gregglesAh, so this is a very recent bug. I think it's a duplicate of http://drupal.org/node/241132
Can you try that out and confirm?
Comment #4
beholder commentedyes, this is it.
but author of this previos patch has mistakes in
db_query_rangesyntax. Here patch for correcting this - it's an argument order problem. I have corrected it, you can apply this last patch for 6.x-1.x-dev version.Comment #5
gregglesYes, your patch looks quite similar to what I created in #6.
So, we agree on the fix. I'll mark that as a duplicate of this one.
Comment #6
gregglesAnd applied to both 5.x-2.x and 6.x branches. Thanks beholder!
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.