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

pauln600’s picture

Hm, 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.

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Ok, 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.

pauln600’s picture

> 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.

merlinofchaos’s picture

What 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.

pauln600’s picture

Thanks, 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.

lameei’s picture

Version: 6.x-3.0-beta4 » 6.x-3.0-rc1

I 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.

bennos’s picture

Hello

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.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Fixed

I 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.

Status: Fixed » Closed (fixed)

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