I want to create a URL, any URL that will display only blog posts that:

  1. were authored by a specific user, and
  2. belong to a specific category.

I'm happy to hack and hard-code any URL I can, and then I can manually alias it to /username/categoryname somehow. I just need to figure out how to generate any ugly URL I can to get it to work (or any other means, including source-code modification)...and have not yet decoded the proper usage of taxonomy_browser. As far as I can tell, the wonderful pathauto is not able to do this. Maybe I missed something?

Can anyone help provide directions/suggestions?

More details can be found here:

http://drupal.org/node/21320#comment-37449

-Matt

Comments

mattengland’s picture

I'd be quite surprised if there were not some way to do this. I suspect Jeremy may chime in later, but until then...does anyone else have any thoughts?

-Matt

mattengland’s picture

/[cat]/[user] would work just as well.

If there is no solution out there, can someone recommend where I might be try to edit the source? Is this exclusively a pathauto thing?

-Matt

venkat-rk’s picture

Are you sure /[cat]/[user] is not possible? It seems to be available even in the old pathauto module.

/[blogname]/[cat] seems tougher. Perhaps the refactored pathauto module can do this except when a blog entry gets reassigned to a new category?
http://drupal.org/node/21251

mattengland’s picture

Are you sure /[cat]/[user] is not possible? It seems to be available even in the old pathauto module.

Where/how exactly was old /[cat]/[user] working? It doesn't work anywhere in the pathautho settings form I have for 4.6.0. I can't see how it would work in any condition set currently in pathauto 4.6 or 4.5; all of the "sections"/scnearios apply specifically to a node title, a blog user-name, or a category. I don't see how pathauto in its current form will work with this (and every time I tried to shove it in--except for the "title" section--I got "[user]" or "[cat]" literally inserted into my URL, depending on the context).

Still trying to knock out this problem. Jeremy suggested a taxonomy_browser-with-pathauto usage, but I still have no clue as to how to get taxonomy_browser to do anything useful.

Any other suggestions?

[Aside: ramdak5000, you've been helpful for a great many things, thank you very much!]

-Matt

mikeryan’s picture

Pathauto is designed to generate an alias for a given piece of content from attributes of that content, so trying to use a [cat] on a blog doesn't work - blogs don't have categories, blog entries do.

However, I do plan to implement this request soon. It's natural, for example, for someone to look at a URI of "music/mikeryan/bso_concert_review" and figure "music/mikeryan/" will get them a list of all nodes I wrote about music. It'll be relatively simple for me to generate such a list just by querying the alias table on dst='music/mikeryan/%'. Thus, once this is implemented, if your pattern for blog entries is [cat]/[user], you'll have just what you want.

Note: between the day job, hacking away at pathauto, and keeping up the content on my site, I don't have time to keep up with the forums - the best way to get my attention with pathauto questions is to either open an issue or contact me directly through my profile.

Thanks,
Mike
Fenway Views