i'm very sorry for having a newbie problem: is there a way of generating the Node Path aliases so they use the Category Path settings aliases for the category component in the path alias, instead of the Pathauto-generated [vocab], [cat] and [catpath]?

In Category Path settings i've aliased a category named "foobar.com public boojams" to "boojams" , but can't get that same aliasing into the Node Path settings. It ends up as "foobar.com-public-boojams"

thanks,
b

Comments

ben soo’s picture

... ok, sorry abt that: i figured it out. Had to tell Pathauto to replace existing aliases and then after a bulk update of the Category Path settings, [catalias] does it's proper thing in the Node Path settings.

greggles’s picture

Status: Active » Closed (fixed)

Glad to hear you fixed it.

Also, please use "example.com" for your examples. see http://www.example.com/ for details.

spidersilk’s picture

Title: use Category Paths settings in Node Path settings? » Use Category Paths settings in Node Path settings?
Version: 5.x-2.x-dev » 5.x-2.0-beta2
Status: Closed (fixed) » Active

I'm re-opening this issue because I have a similar problem and didn't want to duplicate the thread...

I changed many of the aliases for my categories manually in the URL aliases area of the admin, because the ones Pathauto generates are often too long for my tastes. For example, in the category structure the client I'm creating this site for has, there is a category called "Dollars & Legal Sense", which has within it two subcategories, "Financial Info" and "Legal Info". This makes for some freakishly long URLs, so I shortened the paths to /sense/financial and /sense/legal. Likewise with some of the others.

However, when new stories are added to these sections, Pathauto insists on giving them paths like:
dollars-&-legal-sense/legal-info/as-gay-parents,-what-legal-issues-do-you-need-consider?

So it's ignoring the category aliases, and also including punctuation marks that shouldn't be in URLs, especially things like question marks and ampersands that have their own meanings as part of a URL. I guess the punctuation marks should be submitted as a separate issue, but is there any way to make it pay attention to the existing category aliases? The above post mentions something called [catalias], but that doesn't seem to be among the available options in my version of Pathauto, or at least, it doesn't appear in the list. I searched for info on it, and most of what I found was fairly old, and also referred to it not including the actual category hierarchy. Is there any way in the current version to get the appropriate category aliases to be used?

greggles’s picture

Title: Use Category Paths settings in Node Path settings? » provide catalias token
Category: support » bug

@spidersilk - your problem is there is no catalias token. I'll work on providing that.

The punctuation issue is a different one...

greggles’s picture

More specifically, punctuation is _this_ different one: http://drupal.org/node/143831

greggles’s picture

Version: 5.x-2.0-beta2 » 5.x-2.x-dev
Status: Active » Fixed

I just committed some code to the 5.x-2 branch which achieves this.

Thanks for reminding me of the the problem.

I may change the exact token based on the discussion in this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)