Hi, we're recently took over the running of an ecommerce site which was running Drupal 5.x-1.0-alpha7e. I've upgraded it to 5.20, and all of the modules too. It all seems to be working ok, but I'm having a problem with Pathauto.

For products, the URL that was generated looked like this:
/collection/mens/levis-vintage/levis-vintage-1947-501-deadstock-dry-jean-indigo

But this used the variable [categorypathfirst], which is now showing as being invalid in the latest version. I tried it with [title-raw], but that is only producing the '/levis-vintage-1947-501-deadstock-dry-jean-indigo' part.

The category one works with with [menupath-raw] and produces '/collection/mens/levis-vintage'.

If I try [menupath-raw][title-raw], I still just get '/levis-vintage-1947-501-deadstock-dry-jean-indigo'.

I think this is the cause of another problem I'm having. When I create a new category, and add the products, they don't show up in the page view.

This is the first time I've had experience of Drupal, so I'm having to learn fast.

Also, I've read this post which has a very similar problem, if not identical: http://drupal.org/node/70640

I've tried the suggestions, adding true to the functions, but this made no difference. The category_pathauto variables just don't seem to be being picked up, as they don't appear in the Replacement patterns list.

Does anyone have any ideas, or has experienced this problem before?
Thanks
R

Comments

rufus_a’s picture

Nevermind, as usual after spending days trying to fix it, I find the answer less than 2 hours after posting on a forum.

To fix it I upgraded Category to the development version (5.x-1.x-dev from 5.x-1.1).

This allowed me to select [categorypathfirst] which gave me the result I wanted, except with all of the slashes taken out.

I edited the category_pathauto.module file and replaced all instances of categorypathfirst with categoryfirstpath.

This gave me the result and kept the slashes in.

This still hasn't fixed the problem that the products aren't showing in the category however, but I'm going to look at that next.