I'm currently running Drupal 5.6, with Pathauto 5.x-2.0 and Category 5.x-1.1 w/ the patched pathauto module. I am able to create category paths but not category paths with a title attached at the end. i.e. I can do /directory/ but I can't do /directory/storytitle.

For my category path settings I have [catpath-raw] and my node settings I have [categorypath]/[title-raw]

If anyone could help me out here, that would be greatly appreciated!
-Chris

Comments

clkeenan’s picture

Is there anyone that would be able to help me?

leotemp’s picture

I have had a load of problems with path auto, namely I get aliases that wont go away no matter what, the solution for me was to remove path auto, go to the admin section --> site buildint --> aliases or whatever and then re-write the ones i need to work. This is really brutal if you have a lot of them but I just haven't been able to trust path auto to not cluster my site. Maybe install path auto after all of your hard coded mandatory paths have been created.

clkeenan’s picture

I'm going to have a site with well over 1000 articles, so that would be wayyyy too time consuming :(

Oceria’s picture

First of all, pathauto should be working after category I think, so check wether pathauto has a higher weight than category. There is a module that lets you see and change the weight of modules.

Second, aliases that have been created wont be recreated if you reset the settings. Delete all your aliases and let pathauto recreate the URL's in batches. This is somewhat time consuming and uses a lot of CPU/memory, so dont have all paths recreated at once. On /admin/build/path/delete_bulk you can specify which aliases to delete. I'd recommend deleting vocabularies and terms alone first.

Last but not least: check your settings. I work with [vocab-raw]/[catpath-raw] for categories. That might not be what you need, but since you have to delete the categories anyway (and later on the node aliases to rebuild them to your liking) you might as well experiment with them.

One more piece of advice. If you work with pathauto an alias is created, but node/nid still works. Search engines might punish you for duplicate content. There is a module that checks for an alias and redirects to that alias if node/# is requested.

Oceria doesn't know where this -repeatbutton -repeatbutton is....

clkeenan’s picture

Yup, I've done all that including deleting all of the old aliases. I've basically tried all of the different [...]/[...] combinations possible. Its just not recognizing the [categorypath] hook. If I do [categorypath]/[title] the output is just [title].

I've uploaded the globalredirect module already to remove the nid links, but have not yet activated it because I want to make sure the paths are working properly first.

The category paths work just fine, its just the individual articles. The best I've been able to get them is to just display the title... i.e. site.com/[title], even though there is a [categorypath]/[title] setting.

Thanks for your help though, I can tell you put some thought into that post!
-Chris

Oceria’s picture

Shouldn"t node paths not be

[catpath-raw]/[title]

To my knowledge there is no [categorypath], or is it set by the category module?

Oceria doesn't know where this -repeatbutton -repeatbutton is....

clkeenan’s picture

Yup, [categorypath] is part of the category module. For whatever reason, it just is not recognizing that hook and inputting it into the url

Oceria’s picture

Try uninstalling it, using the uninstall option, or if that is not available, delete all entries in the database. Then reinstall the newest version: it almost seems like pathauto is processed before pathauto.

Also use module weight to see whether the module is set properly. I think the category module should be processed before pathauto. Check the module weight from pathauto and set the category module one heigher (eg: if pathauto has a weight of 15, then set category to 14). If that doesnt work, try reversing it: but my guess is as good as yours (or vice versa) ;)

Oceria doesn't know where this -repeatbutton -repeatbutton is....