Closed (fixed)
Project:
Panels
Version:
6.x-3.0-rc1
Component:
Panel pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2009 at 19:44 UTC
Updated:
1 Oct 2009 at 19:10 UTC
I understand that a pathauto URL alias can't be overridden by a panels page path. I'm looking to replace the normal taxonomy term display of the lowest level in the term heirarchy with a panel page; that is, I've got
taxonomy/term/{n}
aliased to url
/{term1}/{term2}/{term3}
and I want a panel page with a path of the form
/{term1}/{term2}/%
to display term3.
Except by removing the URL alias, how is this done?
Thanks,
Paul N.
Comments
Comment #1
pauln600 commentedHm, the short answer seems to be that it can't be done, at least not in a straightforward way - that's too bad, it seems to be a major limitation that you can't use panels to rework the display of a taxonomy hierarchy by term order easily. I hope I'm missing something...
Paul N.
Comment #2
merlinofchaos commentedOk, first, the alias is invisible to Panels. It's not that it can't override the alias, it's that it never sees it. So whatever your alias is, the real path in Drupal is taxonomy/term/%
The rest...I'm not sure what the question actually is.
Comment #3
pauln600 commented> It's not that it can't override the alias, it's that it never sees it.
Right - same difference, I guess.... I think I understand the issue, and if so it makes it awkward to substitute a panel page for a term view at a particular level in the hierarchy where the menu URLs are implemented in the obvious way - for example
Term -> URL
------- ------
Pets -> Pets/
- Dogs - >Pets/Dogs
- Poodle -> Pets/Dogs/Poodle
- Doberman -> Pets/Dogs/Doberman
and at the level of the breed, I'd like to use a panel page (Pets/Dogs/%)
instead of the normal taxonomy/term display.
Or am I missing something...?
Thanks,
Paul N.
Comment #4
merlinofchaos commentedWhat you probably need is an access control plugin that examines the depth of the term and can select a particular variant based on this. Such a thing does not exist. However, there is a PHP Code access plugin. You might be able to figure something out there using it.
Comment #5
pauln600 commentedThanks, I'll see what I can find. I suspect a lot of people would want to do something like this... there seem to be a number of threads popping up on this subject.
Paul N.
Comment #6
lameei commentedI can not take over the taxonomy term pages. I used the pathauto for some time. I tried everything i thought but nothing works. at some posts I've read that Panels will not override the pathauto aliases. But i know that the default path of taxonomy will not change with pathauto and panels should work with original taxonomy/term/% path.
Any way how can i override the taxonomy term pages?
P.S: not using pathauto right now.
Comment #7
bennos commentedHello
You can use a php like here
http://drupal.org/node/64135#comment-837247
just change the term ID in the code.
You can also use pathauto.
I think you are a little bit confused about the use of taxonomy.
every Term has an ID and there is also a term hierarchy.
Example:
Pets/Dogs/Doberman
Doberman has the TermID 312
Pets and Dogs are Top taxonomy terms. If you visit Pets/Dogs/Doberman only the termID 312 is provided.
pathauto uses the hierarchy to construct speaking URLs.
If you want to use blocks or special panel pages for the url Pets/Dogs/Doberman use the php snippet in the comment link.
The Snippet retrieves the termID via arguments.
hope this helps.
Comment #8
merlinofchaos commentedI think there's enough info in here to mark this fixed. At the very least, there is nothing more for us to do unless the poster runs into problems.