3

I have created a page view taxonomy/term/%/faq. It works fine but I need to replace taxonomy/term/% with its url alias.

3

Pathauto just allows you to generate the URLs automatically so I believe you would still have the issue.

You will need something like https://www.drupal.org/project/path_alias_xt to extend the alias functionality to the other subpaths like the node/%/edit, taxonomy/term/%/faq etc.

1

Try using pathauto which will help you create aliases for taxonomy pages.

0

I did it that way : using page_manager (with ui) & panels, creating a panel page with an URL /taxonomy/term/% and disabling (not deleting) default taxonomy_term view (with its URL /taxonomy/term/% )

Then i copied default taxonomy_term view to a new one using different URL (different than /taxonomy/term/%), i added a block (and disabled 'page' displayID) to this view acting exactly like default taxonomy_term view page.

Note : this block should have a contextual filter that correspond to taxonomy term ID (with depth or not)

Then i added this created block in my panel.

That allows to do what you are needing (get alias for URLs), and moreover, you can add things (blocks) to this page and it is a lot more flexible than overriding default taxonomy_term view. I did not this for that puprose, but you can get your goal this way.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.