pathauto

Drupal Node Hierarchy

Hiya, I'm having a problem working out how drupal structures content. I have a content type called "Artists" and then i have "Songs" i want my URL's to be: www.foo.com/{artist generated url}/{song generated url} i.e. www.foo.com/led-zeppelin/stairway-to-heaven/ {artist generated url} -> is created automatically by pathauto from ...

How to create pathauto same stackoverflow.com

I know that stackoverflow.com uses the module pathauto. I would like to use pathauto in drupal to create pathauto uris. But I don't know how to do this. Example: domain.com/node/1 after using pathauto then domain.com/article/1/title-node Now I want to go to domain.com/article/1/??? then still it shows node 1 instead of show page not fo...

Drupal view and path urls..

Hello, I've a problem with drupal paths in one view that I building. Right now my view has this form: contents/2/6. Where 2 and 6 are the Ids of two nodes, I'd like to manipulate these ids to translate them let's say the title of those nodes. I can not do this from the view because I'm sending these values to a panel, and the panel MUS...

Drupal RSS feed links

I'm creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed? I have a multi-language site which uses the path aliases to show correct navigation, and so when I get a 'node' link from the feed, it breaks everything. EDIT I'm creating the ...

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, too.) ...

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 block to a specific content type? Hint: I have started to look at URL aliases with Pathaut...

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 suggests the use of hook_token_values, but I couldn't really understand how to use it, eve...

Fundamental understanding of how Views and Pathauto work together

Hello all! 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 display the main node on a path. When I do this, I can't use pathauto, as it ...

Is there a way to output users name as a link to profile in Drupal?

Im using pathauto so user profiles have a clean URL in the format /user/name-name How can I output the users name as a link to the profile? Ive seen the theme() function used to do stuff similar to this? ...

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 removing the slash and leaving in spaces. Also, it's not converting to lowercase. I've ...

Redirecting or rewriting drupal links

I have a custom structure for browsing content built with hook_menu and Views. I would like links to content to be routed by node type to the appropriate destination in my structure. So while normally clicking on a node link takes you to node/123, I instead would like to be sent to foo/123 (because node 123 is of type 'foo'). I tried ...