I am trying to change the url from "www.mysite.com/classified/6" to "www.mysite.com/for-sale/appliances". on the replacement pattern for "Pattern for all Classified Ads categories paths" i entered "[term:url]". it doesnt change anything on the url. What do I need to put in the replacement pattern to make the url a specific category?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fgm’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, your request is not very clear. It looks like you are using other modules in addition to Classified Ads, maybe pathauto (which version ?). Can you describe step by step what you are doing starting from a clean install, what you expect, and how what you get differs from what you expect ?

ebitiba’s picture

sorry. i have looked at the other issues and haven't found this particular problem. yes, I am using pathauto ver.7.1.1. So when I click on one of my categories, I want the link to take me to the url of "mysite.com/services/legal." "Services" is a one of the terms of the categories taxonomy and "legal" is a term child of the services term. As it is, the url that it is linked to now is this: "mysite.com/classified/6." But I don't like that url, so I want to go into pathauto, into the alias pattern settings to change the urls for all category taxonomy term paths. What replacement patterns do I need to use to accomplish this?

fgm’s picture

Status: Postponed (maintainer needs more info) » Fixed

The classified pages are not standard taxonomy term pages like the ones you can alias with pathauto on core: for the same term, they point to a different content. So if you want to alias them, you have to

  • either do it manually,
  • or submit a patch to Classified Ads for pathauto integration (hint: look up hook_pathauto).
fgm’s picture

Title: url alias not making needed changes » Allow automatic aliasing of Classified Ads paths
Version: 7.x-3.0 » 7.x-3.x-dev
Component: Miscellaneous » Code
Category: support » feature
Status: Fixed » Active

Actually, this could be an interesting feature, although I don't have time for it now. Retagging accordingly.

ebitiba’s picture

Status: Active » Closed (works as designed)

thanks for the response. closed

fgm’s picture

Status: Closed (works as designed) » Active

Closed support issue, but active feature request for the future :-)

fgm’s picture

Issue summary: View changes
Status: Active » Needs work
FileSize
1.69 KB

I had this start of work in a local repo. Submitting here as a patch to avoid losing it. Definitely not finished.

fgm’s picture

Status: Needs work » Closed (won't fix)

With this module end of life approaching along with Drupal 7 EOL, this issue is now moot.