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 253261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T21:44:48+00:00 2026-05-11T21:44:48+00:00

I would like to be able to programmatically change the outputted path to a

  • 0

I would like to be able to programmatically change the outputted path to a Drupal node without using the PathAuto module. We currently process a large volume of content (thousands of articles per day) that get added on the back-end. Rather than use PathAuto to generate path aliases, I would like to have Drupal output the default link but append a partial title for better SEO.

An example of this would be:

/node/123

would be changed to

/node/123/This-is-the-article-title (this path currently will work for the existing node)

I understand how to do this on a theme-basis, by modifying the theme/view templates, but I would like to do it so that anytime the link to the node is displayed anywhere, it adds the title plug.

In addition, I would like to limit it to a certain content type (e.g., ‘article’).

I am using Drupal 5.x and I would prefer not to use PathAuto (I don’t want to store hundreds of thousands of path aliases if not necessary)

I am looking for a solution that does not use PathAuto

  • 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-11T21:44:49+00:00Added an answer on May 11, 2026 at 9:44 pm

    Drupal has an internal mechanism for mapping from “/node/1234/” to “/blogs/look-at-what-my-cat-just-did”. It’s part of the core system, and used almost everywhere, on every request, without you even having to ask. It’s fast enough you’ll almost never notice it happening – there’s plenty of other things in drupal that are -far- slower.

    If you’re concerned about how URLs are being displayed on the front-end – you should be using the url() function (and filters that do the same with node content) to handle look-ups going the other way.

    Where Pathauto comes in is that, when you create or edit content, it will generate a number of entries in Drupal’s url_alias table (based on whatever pathauto rules you’ve created). This is a one-time cost. Unless you’re generating content at an astronomical rate – there is a negligible cost associated with doing this.

    You’re already paying the cost of looking up URL aliases by simply using Drupal. Without hacking core, you can’t really avoid it. Storing “hundreds of thousands of path aliases” in the database isn’t that big of a deal – if you break that down into the actual storage requirements, you’re only looking at a handful of megabytes. Since the table’s well indexed, look-ups will be virtually instantaneous. This is core functionality & happens regardless of Pathauto even being on your system.

    Unless you have some very odd requirements for the types of URLs you want to map your nodes to, anything you do will simply be recreating a subset of Pathauto’s existing functionality (and likely introducing a bunch of new bugs).

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

Sidebar

Ask A Question

Stats

  • Questions 173k
  • Answers 173k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You may not be allowed to: see WRONG_DOCUMENT_ERR and ownerDocument… May 12, 2026 at 2:36 pm
  • Editorial Team
    Editorial Team added an answer Try this: <asp:ImageButton ID="btnChangeMedium" OnClick="Change_Click" runat="server" OnClientClick="javascript:void(0);ChangeMedium();"/> May 12, 2026 at 2:36 pm
  • Editorial Team
    Editorial Team added an answer Just pass it through locals like in your second example… May 12, 2026 at 2:36 pm

Related Questions

I would like to know if it is possible using IIS and ASP.NET (and
I use a VB6/COM+ application which outputs date/time values based on the short date
I am new to iPhone development, so I'm sorry if this is a stupid
I want to hide the guts of my URL programmatically. I know I can

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.