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?

Comments

greggles’s picture

The 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.

beholder’s picture

Status: Active » Needs review
StatusFileSize
new1.18 KB

It seems that I have found this bug with aliases. There are mistakes in queries: first need to be db_query instead of db_query_range; and second uses arguments for db_query_range, but it's just db_query too. Please, see my patch.

greggles’s picture

Status: Needs review » Closed (duplicate)

Ah, 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?

beholder’s picture

Status: Closed (duplicate) » Patch (to be ported)
StatusFileSize
new1.2 KB

yes, this is it.
but author of this previos patch has mistakes in db_query_range syntax. 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.

greggles’s picture

Status: Patch (to be ported) » Needs review

Yes, 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.

greggles’s picture

Status: Needs review » Fixed

And applied to both 5.x-2.x and 6.x branches. Thanks beholder!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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