Questions tagged [pathauto]

PathAuto is a Drupal module that allows to automatically create path aliases for different type of pages.

The Pathauto module automatically generates path aliases for various kinds of content (nodes, categories, users) without requiring the user to manually specify the path alias. This allows you to get aliases like /category/my-node-title.html instead of /node/123. The aliases are based upon a "pattern" system which the administrator can control.

Pathauto depends on the Token module.

53 questions
26
votes
10 answers

Menu path in Pathauto

How do I get pathauto under Drupal 7 to generate a URL alias by the full menu path?
dantz
  • 1,652
  • 4
  • 20
  • 24
9
votes
3 answers

Fundamental understanding of how Views and Pathauto work together

I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to…
Dan Johnston
  • 131
  • 1
  • 4
6
votes
4 answers

How to programmatically bulk create/update aliases in Drupal 7

How to programmatically bulk alias node urls by using only drupal 7 core (with it's great batch API !)? My question is actually how to make drupal use and recognise the aliases stored in url_alias table? Background: The project I work on has more…
Ironflood
  • 73
  • 1
  • 6
5
votes
5 answers

Drupal 7:Pathauto patterns from menu structure hierarchy

I'm trying to create a Pathauto pattern which looks like "Drupal root/parent_menu_item_name/node_title" where "node_title" is a child of "parent_menu_item_name" in the menu hierarchy. I've tried many different variations, and nothing works. I've…
Dylan Spencer James
  • 506
  • 1
  • 9
  • 23
4
votes
2 answers

In Drupal, how to change the values passed to Pathauto?

I have Pathauto configured to generate an alias based on the title of a node, for a specific content type. The problem is that I want to make small changes in this title before Pathauto uses it to generate the alias. The first comment in this post…
Vinicius Pinto
  • 7,848
  • 3
  • 40
  • 58
3
votes
0 answers

Drupal 8 - Custom Url path for node with taxonomy

I'm trying to save a custom url path like such: "/PARENT_TERM/TERM/NODE_NAME" Thanks to Pathauto, I've managed to get hold of the info I needed to construct the url string but I can't seem to get my url to save. I'm also not sure whether it would be…
2
votes
1 answer

Drupal 7 list users with taxonomy term using Views and Pathauto

I am attempting to create a taxonomy term page to display users tagged with a vocabulary "expertise" and not having much luck. I'm using pathauto to alias the taxonomy term pages with the following pattern: [term:vocabulary]/[term:name]. I then have…
drmonkeyninja
  • 8,377
  • 4
  • 29
  • 59
2
votes
4 answers

Drupal Panel Pages Pathauto

I have a Panel Page set up with the path node/%node/foo and all works fine when I visit a link such as node/6/foo. However, when I visit nodealias/foo it doesn't work at all. Is it possible to get panels to work with pathauto in this way? I am…
Finbarr
  • 28,231
  • 12
  • 59
  • 90
2
votes
3 answers

Drupal: assign block to a specific content type

I made a customized template called node-mynode.tpl.php Whenever a node of type mynode is requested, then node-mynode.tpl.php is automatically used. However, now user wants to see a specific menu block in this case. Question: How can I assign a…
bert
  • 287
  • 6
  • 14
1
vote
1 answer

apply drupal pathauto generals settings manually

I want to make aliases for different languages in my own modules code. For that reason I want to apply all the general replace patterns of pathauto to a string. For example replace spaces by seperators and special characters. Is there a function,…
1
vote
1 answer

Using Pathauto on Articles in Drupal

In Drupal 7, I have a site with thousands of articles. I'm using taxonomies to sort my articles, and a view which uses a content filter to display the appropriate articles with the associated terms on certain pages. Standard functionality. I've…
Brendan
  • 97
  • 2
  • 11
1
vote
1 answer

Pathauto based on Primary Links

I'm trying to set up pathauto to generate clean URLs based on my primary links. So About > Executives / Board would be about/executives-board. I've used the [menupath-raw] token for this which is creating the alias: About/Executives / Board It's not…
Ian McIntyre Silber
  • 5,315
  • 12
  • 50
  • 74
1
vote
2 answers

where in the db is the "Automatic alias" setting stored for drupal's pathauto

I created a bunch of nodes using node_save(). Unfortunately, I forgot to turn on the Automatic alias setting on them. Anyone know how I can do that now? I can't figure out where in the db that setting is stored. (Other non-db approaches are fine,…
sprugman
  • 17,781
  • 31
  • 105
  • 160
1
vote
1 answer

Drupal pathauto token [term:parents:join-path] works wrong

If parent term url wasn't autogenerated. And children term url was generated using token [term:parents:join-path], it use wrong parent category url (autogenerated, but not real). Imagint we have set Blog taxonomy terms URL aliases generation rule to…
Rantiev
  • 1,869
  • 1
  • 22
  • 46
1
vote
1 answer

drupal 7 taxonomy i18n is not working when editing multilingual content.I'm stock to default language

I create a taxonomy called colors. Each of my term are translatable, in french and english. I create a content type called product where I can associate a taxonomy color. Note that my product content type is multilingual aswell My admin default…
1
2 3 4