Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 889501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:34:41+00:00 2026-05-15T13:34:41+00:00

I am trying to upgrade an old-school PHP site ( http://cordair.com/ ) to work

  • 0

I am trying to upgrade an old-school PHP site (http://cordair.com/) to work with Drupal running Ubercart. One of the key things is making sure URLs that people have bookmarked stay the same.

My taxonomy looks something like this

Catalog
 + Artists
    + Pablo Picaso
    + Lenardo DaVinci
 + Medium
    + Sculpture
    + Painting
    + Print

The taxonomy is multi-select. So each has 1 artists and potentially multiple mediums (e.g. something can be both an original painting and also available as a print). I want the site to be able to serve up a page at http://foo.com/picaso that lists all the items at or under Pablo Picaso. I also want to be able to have a page like http://foo.com/paintings that lists all the paintings across all artists.

What’s the best way to pull this off? It looks like I need to use Path Auto, but it’s really confusing to figure out what the right settings are. I also don’t see a way to custom tailor the way the taxonomy term is turned into a URL; right now I just get IDs. It looks like there’s a way to use term name, but the URLs I am trying to build just use last name and not first.

Forgive my Drupal noob-ness, as I am sure this is all possible and probably easier than I think it is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T13:34:41+00:00Added an answer on May 15, 2026 at 1:34 pm

    Possible, but questionable approach:

    In order to extract only the last names, you’d need to implement a custom token for taxonomy terms that will do the necessary string manipulation. (You’d want to create a variation of the default [cat] token. This example for a custom node title token might also help to understand the process.)

    However, this approach has some serious downsides:

    • How to decide what’s the last name from code? (e.g. Jan van Eyck or Pieter Brueghel the Younger)
    • What about identical last names? (e.g. Jan van Eyck vs. Hubert van Eyck)
    • What about chaotic mixtures of the above? (e.g. the whole Brueghel family 😉

    Recommended alternative approach:

    To avoid dealing with the above ambiguity problems, and given that the site you want to replace has a pretty small set of target names so far, I’d just use the standard [cat] token, using the full names for the URLs (Pathauto allows you to specify default replacements for special characters, e.g. spaces to underscores or dashes). Then you can add redirect rules for all the old, ‘last name only’ URLs to the sites .htaccess files to keep them functional while promoting the new versions:

    # http://example.com/picasso  => http://example.com/pablo_picasso
    RewriteRule ^picasso $ http://example.com/pablo_picasso [L,R=301]
    # ... and so on for all old urls that changed
    

    (You might also check the Path redirect module as a ‘Drupal internal’ alternative to the .htaccess manipulation).


    Additionally, I would recommend splitting the ‘Catalog’ hierarchy in two separate vocabularies, e.g. ‘artists’ and ‘medium’. While this would result in two separate taxonomy fields on the node entry form, it fits the semantic difference and would give more flexibility for filtering, sorting and grouping the nodes down the road.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to upgrade an old 1.2.6 Rails application to 2.3.8, and I'm running
I'm trying to program a Hebrew site with a search option. (old site and
Im trying to upgrade an old project made using django 1.2 / django-page-cms 1.2
I'm using pip with virtualenv --no-site-packages --distribute and am trying to upgrade Django. pip
Been trying to upgrade my subversion installation, but due to (what I believe) are
I'm trying to upgrade my subversion server (I have it hosted with Dreamhost) This
As part of an ongoing process of trying to upgrade my C++ skills, I
Specifically, we are trying to upgrade our telerik controls to the latest version. Unfortunately,
Preface: I have a rolling upgrade to SharePoint 2010 in progress for one of
My knowledge is C is very limited. I am trying to upgrade a library

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.