I've duplicate the view taxonomy_term to override my category/vid/tid pages (taxonomy is using this path on my site because of PathAuto)
So, everything works fine on the preview of the views module and it show me the right path on the path part... Expect that when i go on this path, Drupal is using the original taxonomy page...
Where i'm wrong please ?
Here is my screenshots :
1 - The view and the preview
2 - The correct path
3 - What the path showing
Thanks in advance,
| Comment | File | Size | Author |
|---|
Comments
Comment #1
dawehnerthis seems to problem with the menu system handling of drupal, it just don't use aliases at all, not sure about this.
but you can two things to solve your problem:
Comment #2
merlinofchaos commentedYou're probably confusing the aliased page with the actual page. If you're using pathauto, and I am fairly sure you are, the alias pathauto generates is invisible to Drupal. It still sees taxonomy/term/TID which is why you still get the original page. Try taxonomy redirect or Panels 3.
Comment #4
jeffschulerI was having trouble understanding the suggestions here, and it took me some time to get un-confused, so I want to share my delusion in case others suffer from similar.
Wrong Way:
After enabling the taxonomy_term View, I changed the path for the [page] View to use the same naming convention as set for taxonomy terms in Automated alias settings -- in my case,
category/[vocab-raw]/[catpath-raw], so something likecategory/%/%. I made the term argument in the View to convert from term name to term ID.The new View worked fine in the Preview, and if I set the path to something other than what the Automated alias settings had defined, but when I tried to duplicate/override the same path, I would only see the default page and not my View.
Right Way:
The solution is to do almost no work at all: just use the default path for the View --
taxonomy/term/%-- and the default argument -- Term ID, (instead of converted to term name.) The view will override the actual taxonomy page, which is pointed to by the [automated] alias. Since the alias, underneath, just points to that page, (taxonomy/term/%), it is taken care of, implicitly. There's no need to make the View path the same as the aliased path.