First and foremost this module is great!

I'm currently trying to figure out how to alias the URL on the www.example.com/ed-classified page. It lists the sections but the url is www.example.com/ed-classified/tid/1, www.example.com/ed-classified/tid/2, etc.

I've been able to overcome this once a user views an ad but not on the homepage. For instance, once a user clicks on the "miscellaneous" section from www.example.com/ed-classified it takes them to www.example.com/ed-classified/tid/23. Now once they click on an item posted in the miscellaneous section, it takes them to www.example.com/classifieds/miscellaneous/title-of-ad due the way I have pathauto setup.

On the listed items page at the bottom right is the term miscellaneous, which also points to www.example.com/classifieds/miscellaneous/. Is there any way for me to have this link displayed on www.example.com/ed-classifieds/ like it is on the subpages?

any help is greatly appreciated.

Merry Christmas,
:cD

Comments

STyL3’s picture

also, if the ed-classifieds portion of the link can not be changed, that is fine. I'm more concerned with the term showing up instead of the /tid/6.

smcguinness’s picture

You need to check out the Pathauto module. Also, you'll need to Token Module to be able to auto generate the titles of the newly created ads. Its rather easy and the Pathauto module allows you to create nice clean urls for all your nodes with a great initial setup or you can use a default naming pattern for all created nodes. Also, renames past nodes if there are any that aren't using the desired naming you enter. Nifty module.

Lars Jansen’s picture

Hi buddy,

I'm having the same problem. To change the ed-classifieds p[ortion of the urls see lines 24 to 31 in ed-classified.module.

If anyone could help with STyL3's other problem I'd be grateful. We're both using pathauto but that just ain't working.

michelemeek’s picture

Did you all ever find a solution to this?

mcurry’s picture

Title: URL Alias » URL Aliasing doesn't work as expected

No, and I'm still investigating. I would like to ensure that this module behaves well in this regard, so I'll see if I can come up with any insights.

weka’s picture

Any new developments on this issue?

I am running Classified Ads 6.x-2.0-alpha6 on Drupal 6.15 with Pathauto 6.x-1.2 and the links to categories on the /ed-classified page are still created as www.example.org/ed-classified/tid/23

Pathauto is working fine for aliasing the node and taxonomy paths.

My Node path settings:
[vocab-raw]/[term-raw]/[title-raw]

My Taxonomy term path settings:
[vocab-raw]/[cat-raw]

I just barely started testing this module, but am seriously considering removing it and try to replicate its functionality with CCK, Views and Auto Expire modules.

fgm’s picture

Version: 5.x-1.5-8 » 6.x-3.x-dev
Status: Active » Fixed

The second point was fixed in 6.x-3.x : taxonomy links on Classified Ad nodes now point to Classified Ads term pages like classified/(tid) instead of taxonomy/term/(tid). This has even been refined in 7.x where you can choose which field formatter to use for term links, per view mode.

The first point can be achieved with 6.x-2.0-alpha6 / 6.x-2.x by overriding theme_ed_classified_category_list_row() in yyour theme: this will allow you to display the individual rows with whatever formats and links you want. You also have a bunch of other theme functions you can override in your theme to completely rework that page. Look into file ed_classified_themefuncs.inc. That way you won't have to hack the module as suggested in #3.

With 6.x-3.x you can just override theme_classified_overview() in your theme, which gives you the parameters, as they are needed by theme('table'). You can override theme to display the data otherwise. To just change the links on all page without changing the layout, you can define a custom_url_rewrite_outbound() function to change the links to whatever you wish.

With 7.x-3.x this is available directly from core using hook_page_alter() without the need for a specific hook: since this page is built as a render array, you can override its content pretty much as you wish by implementing hook_page_alter() and modifying the $page['content'] element.

Finally, any alias you define to a Classified Ads term path will be honored. But there is not yet a way to define them automatically: that's for issue #531436: Provide customizable paths to Classified category pages.

Status: Fixed » Closed (fixed)

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