Closed (fixed)
Project:
Pathauto
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
23 Nov 2005 at 23:39 UTC
Updated:
4 Jan 2006 at 14:19 UTC
This should solve a big problem in taxonomy.
If I have a simple taxonomy like this:
all news (id=1)
- bad news (id=2)
- good news (id=3)
It should generated something like this:
"all-news" -> taxonomy/term/1+2+3
so when I look for news I get all news inside "all news" and all "bad news" and all "good news".
Looking only for "all news" without getting sub category news is useless, because "all news" is empty.
Thank you for making Drupal even better!
Comments
Comment #1
drewish commentedi haven't looked into how hard it would be to implement, but this is a feature i'd really like.
i'll see if i can make some time over the holiday weekend.
Comment #2
venkat-rk commentedBy default, a taxonomy term page picks up all nodes that are tagged with that term's sub categories. And in pathauto, if you put [catpath] in your 'news' term settings, you get urls like ../news/goodnews and ../news/badnews
So, is this really an issue or am I misunderstanding your question?
Comment #3
drewish commentedramdak5000, it sounds like taxonomy is doing the right thing. i guess the problem is with the pages that pathauto is generating, they do not include items from sub-categories.
Comment #4
drewish commented[sorry, hit publish instead of preview]
Here's an example from a site that I work on. We've got a taxonomy to sort radio programs.
All the sports talk shows go into: http://kpsu.org/genres/talk/sports
but, they don't show up on talk show page: http://kpsu.org/genres/talk
Comment #5
seuck commentedThe problem is inside Drupal, not Pathauto. I'm only trying to find a workaround using pathauto.
I'm already using [catpath] in "Category path settings". The result is:
Alias System
news -> taxonomy/term/1
news/good_news -> taxonomy/term/3
news/bad_news -> taxonomy/term/2
This doesn't help me. If I look for mysite.com/news I get only news inside "news" but not news inside "news" subcategory.
The workaround is to generate with pathauto an alias like this:
alias System
1) news -> taxonomy/term/1+2+3
2) taxonomy/term/1+2+3 -> taxonomy/term/1
but this don't work.
Drupal uses alias 2) but doesn't check if the resulting URL (taxonomy/term/1+2+3) is also in the alias list.
The right result should be:
taxonomy/term/1 --> taxonomy/term/1+2+3 --> news
I hope my explanation sounds good.
Of course, the definitive solution is to put this behavior inside Drupal without the need to keep update (or keep at all) an alias to list table.
Comment #6
seuck commentedI've resolved the recursive aliases problem patching "bootstrap.inc". Now my "drupal_get_path_alias" function looks for aliases recursively.
This fixes the recursive aliases problem. My pathauto feature request still active.
Comment #7
mikeryanThere's no problem with pathauto here. Just using patterns, you can narrow things down to items assigned the specific category. By enabling "Create index aliases" in conjunction with a [catalias]-based alias you can produce listings that include all nodes with a given term and all it subterms.
Comment #8
agentrickardA clarification, then, please, because I'm having the same difficulty, and have been pounding against a wall for a week now.
Using PathAuto v1.17 for Drupal 4.6.3.
Pathauto is successfully generating Index Aliases for Nodes Path Settings, based on rules I provide. These aggregate as I expect, following this sample rule:
Which gives me nicely archived chunks of content that my designers have requested.
PathAutos is not, however, aggregating Taxonomies as I expect. As set under Catagory Path Settings, I do not see nodes "roll up" under parent terms. Using these simple settings:
When I post an item, I am indexing it in (at least) two dimensions. One is by date/time/type, and one is by content/taxonomy/geography.
What I expect from PathAuto is this:
Node Title: Sports Story
Date: January 3rd, 2006
Catpath : News / Sports / High_School_Sports (also known as taxonomy/term/24)
I expect to find the following node/path references to this story:
These all do exist, as expected.
But I also expect to see the node aggregate here:
In fact, it only appears in the first of the three. The url_alias for each of the three exists, they are:
Can someone tell me why the content is not being indexed by the parent taxonomy? When I bulk generate index aliases, the module only seems to generate aliases based on the node path settings (if that's any help).
Am I misusing or misunderstanding the module in some fundamental way?
[And, yes, I could put the [catpath] directives into my node paths, but that isn't really where I want to put them.]
Comment #9
venkat-rk commenteddrewish, agentken,
As Mike mentioned, the problem of the nodes not being listed on a category page is not pathauto's but that of drupal's taxonomy module. There is an incredible, one-line hack that solves this problem without an admin resorting to horrible contortions using taxonomy/term/a+b+c stuff.
The solution is here:
http://drupal.org/node/41349#comment-76913
Comment #10
agentrickardGreat. I figured as much after I thought about my post. Just coouldn't find the solution.
Will test. Thanks.