Questions tagged [path-aliases]

Use it for questions about path aliases, a way of creating pretty human readable URLs to replace system URLs like node/[nid].

Filter by
Sorted by
Tagged with
2
votes
3answers
3k views

How to use term id in content paths using path auto?

How can I use term id instead of term name in path auto?I have a category field in my content type named "field_article_category" and there is a token [node:field_article_category] for it but it is ...
5
votes
3answers
7k views

Can I display all token values available for my Drupal installation?

Is there a way that I can display all possible values for tokens available on my Drupal installation? For example, I'd like to see all of the possible values for the [termalias-raw] placeholder that I ...
2
votes
3answers
1k views

Why are IDs showing in URLs when clean URLs are enabled?

I've enabled clean URLs on my site, and currently, URLs are of the form: /node/123 How can I force them to to use human-readable URLs? Something like: /node/title-of-node
1
vote
1answer
1k views

Drupal path prefix based node content

I'm new to Drupal and have a basic question which I cannot find a good answer to. I have already posted this at Stack Overflow but still am hopeless. I am trying to dynamicly determine the contents of ...
3
votes
1answer
2k views

Cleaning up the node edit URL

Say I have node/111/edit, and that node's path is my-node. I want the edit page to be at my-node/edit, instead of node/nid/edit. Is there an existing solution for cleaning up the node edit URL, e.g. ...
0
votes
2answers
211 views

Change node content after logging in under the same URL alias (showing other content for authenticated users)

I would like to change node content under some specific URL aliases after the user logs in, to show some other contents for authenticated users. With a really simple example, there's a node which can ...
1
vote
2answers
2k views

How to move every node to its own subdomain with Drupal?

I have a content site that was affected by Google Panda, and recently it was suggested that it is advised by Google that moving content to subdomains might work. Does anyone have a working solution ...
2
votes
3answers
704 views

Include AF container in pathauto URL

I am using the 'Advanced Forum' module with Drupal 7, in conjunction with the 'pathauto' module. I would like to include the parent forum, if not the container of the parent forum as well, in the ...
0
votes
1answer
2k views

URL alias with taxonomy term (multiple vocabularies). How do I choose one?

I'm trying to setup a content type that has a multiple level taxonomy vocabulary assigned. The same content has a CCK taxonomy field for other use, but I don't want to use it on the URL. The problem ...
0
votes
1answer
1k views

i18n, path alias doesn't work

I set path auto alias of content type page to: [language]/[title-raw] I am using Content Translation module. I created english version of selected page. Alias was generated ok. But even if I am ...
0
votes
1answer
882 views

Drupal 7 aliases for a certain content type producing 404

I've got a custom content type ("charity listing"). Nodes in this content type should have the automatic alias charities/view/[name-of-charity]. They do indeed have this alias, when I try to edit a ...
3
votes
1answer
341 views

path_set_alias() generates the wrong alias, and creates a 301 redirect to the desired alias's path

I'm creating a webform when organic groups are created and I'm trying to set an alias for it with hook_nodeapi(). It successfully creates the alias when the insert operation for the group is called ...
1
vote
1answer
210 views

is using non English words for paths recommended?

I'm working on a Drupal site which has a non-english language.I want to change the paths to something better than node/[nid].Nodes also have a non-english title and I want to set the path to content/[...
2
votes
2answers
2k views

Drupal multiple node url aliases

Is it possible to take a field from my node and create a url alias from the content of that field? Say I have a node type article. This gets its normal url via pathauto, but I also wish to be able to ...
4
votes
1answer
234 views

OG homepage URL

My current/default group front page is groupname/node/nid But this is quite ugly, and when clicking on the site title the user is redirected to /group which does not display the group node but only ...
2
votes
4answers
6k views

In Drupal 7 how do I add an anchor tag to a path alias menu link

I created a node in drupal 7 and given it a url path alias of 'testing'. When I try to create a menu item that links to the path alias with an anchor, it throws an error If I do node/1#this it ...
5
votes
2answers
357 views

Build StackExchange-style url's

I'm looking for a way to build what I call 'StackExchange style' url's with Drupal 7. In my definition, that means: A node has a path alias containing both a unique identifier and the node title. For ...
2
votes
1answer
625 views

Setting up catalog taxonomy

I'm fighting with pathauto patterns for a particular content type. The content type is bound to a taxonomy (a product catalog). I thought that the taxonomy tree should only hold container items (...
4
votes
1answer
5k views

Path (URL) to call custom module function

I am developing a custom module and I need an URL that would trigger an action when called. The purpose is for an external server to call this address passing some variables through $_REQUEST['...
1
vote
1answer
752 views

Create different URL alias based on CCK field

So I have a typical blog entry content type and I've added a CCK checkbox for some extra functionality. I'm using the pathauto module to automatically set the URL alias for the blog entry content type....
5
votes
3answers
4k views

Use entity_uri or drupal_path_alias()?

What are the difference? And when should you use which one? entity_uri() is rather new to me (Drupal 7) and I see it little used. But it appears to be a lot cleaner and better performing then ...
1
vote
1answer
391 views

Pathauto module doesn't translate urls generated by l(), url() to aliases, should it?

Pathauto readme says: If you use the "system path" (i.e. node/10) for menu items and settings like that, Drupal will replace it with the url_alias. But in my case links stay the same: echo ...
3
votes
3answers
359 views

Pathauto and dynamic branch depth

I downloaded the Pathauto module to have the taxonomy aliases generated dynamically. The problem is that the pattern apparently expects a fixed depth, while my taxonomy is not that stiff - some items ...
0
votes
1answer
510 views

Custom “account” pages

I am creating custom account management pages in drupal with quite a few criteria. The first being that there is a page at /account which contains two separate forms: 1) To enter a new email address ...
1
vote
1answer
724 views

Automatic alias overriding manual alias on each edit

Does anyone have an issue with Automatic alias, where the setting keeps turning back to auto on each edit of a node? What we would like to achieve is a) some node paths should be generated ...
2
votes
1answer
355 views

Preserve Current Paths before rolling out new Pathauto Alias

I'm just about to roll out a new Pathauto Alias to include a new taxonomy term, which will modify about 1000 nodes. Is there a way to preserve the current path aliases I have now, and then bulk update ...
4
votes
2answers
162 views

Prevent “→” from being written in URL alias

When the post title contains "→," it will be written in the URL alias. When using Boost, an URL containing "→" will not be well cached; visitors will see the uncached node. How do I prevent the "→" ...
4
votes
3answers
5k views

Username as a path to Profile page

I am trying to set up username as a main path to the user profiles in Drupal 7; for example, I would like to have mypage.com/someusername as path alias for the profile of the user that uses "...
6
votes
2answers
872 views

Node alias with taxonomy term

I have the content type 'machine' that uses two vocabularies (producer, category). I would like to create node alias like [language]/machines/[producer-name]/[title-raw]; [producer-name] is from the ...
1
vote
2answers
810 views

Exposed Views 2 filter for path alias

I am surprised that I am not able to find an existing Views 2 filter for aliases (paths). Seems to be such a basic property to filter results by. I know Views can filter by argument but I need it as ...
2
votes
1answer
421 views

Having username as a path - Profiles 2 and Pathauto

I have a problem with integrating the Pathauto and Profiles modules. Basically, I would like to have the username as URL, e.g. example.com/username. This should link to the profile page (not the ...
1
vote
2answers
2k views

Why no pid in node object?

I am setting an alias programatically, using path_set_alias() in Drupal6. Looking at the code of path_set_alias in path.module, I see that if I pass the pid (path id), the old alias(s) for that node ...
0
votes
2answers
743 views

How to update path alias using MySQL command line

Many words have been renamed in the node using the below code: update node set title = replace(title,'Apple','Orange') update node_revisions set title = replace(title,'Apple','Orange'); But now I ...
0
votes
2answers
3k views

Pathauto taxonomy term alias for content paths

I am trying to make my nodes URL aliases use taxonomy term aliases through Pathauto, but I cant seem to figure it out if there is an alternative. For example, I am trying to use questions/[term:url:...
3
votes
1answer
4k views

Pathauto taxonomy terms in content paths

I'm using pathauto and want to set it up so that when a new page is created (which has the taxonomy field) it will add the taxonomy terms into the url. For example, if I have the following vocabulary: ...
1
vote
1answer
5k views

D7 views 3, display content based on path

I have a block that displays results of the nodes i have created but i have those nodes on a specific path, anyway to put this short im trying to make a block from views that displays content based on ...
1
vote
2answers
569 views

Is it possible to create a menu item and leverage path aliases?

I am trying to create a menu item that loads a view mode that calls the callback function with the path alias. $items['node/%/%'] = array( 'page callback' => '_node_view_load', 'page arguments'...
1
vote
1answer
557 views

Pathauto, user profile alias from content profile fields

I created the alias bartender/profili/[content-profile-profile-profile_name-raw]-[content-profile-profile-profile_surname-raw] for users. I want to have '-' between name and surname but it always ...
4
votes
3answers
3k views

Aliases for user profile URLs

For example, the URL http://example.com/user/20/edit/cocktail?destination=user%2F20 leads to a page with the form to add content. I want to create an alias like bartender/add/cocktail, or (if ...
3
votes
2answers
1k views

taxonomy-term at the automatic creation of url alias of a content path

In Drupal 7, how i can use the taxonomy-term at the automatic creation of url alias of a content path?
2
votes
1answer
572 views

Getting Views to use custom aliases

I have the following custom URL aliases that point to specific Views paths: /california/los-angeles maps to /locations/los-angeles /username/listing/post maps to /item/post Views still uses the ...
14
votes
6answers
13k views

How do I use URL aliases in menus?

I am kicking the tires on Drupal 7 by spinning up a test site. I chose the Danland theme and created various pages with URL Aliases for each, but when I create the Menu link for each, I can only ...
1
vote
1answer
864 views

Keep the URL alias for a node when using href

I am using Drupal 6 and I have set aliases for my nodes under Administer > Site building > URL aliases. This works properly; for example, I have alias = about/faq, node = node/33, and when I click on ...
2
votes
2answers
2k views

Altering a URL alias without using a module

Is there a way to alter a URL alias without using a module? Somebody told me to write a record into database table, but I don't know how to do it.
3
votes
2answers
2k views

How to support legacy url alias' and/or support multiple url alias' (Conditional Pathauto?)

I am migrating a site from wordpress and need to preserve my url structure whilst supporting native pathauto urls in the future (for new content) Overall Drupal's clean url process is almost ...
2
votes
2answers
753 views

Path associated to Views

I used Pathauto to create URLs for my nodes like gallery/[node:title]. I created a view with an argument, and the path is gallery/% (% is the node title), but when I point my browser to that URL, I ...
11
votes
2answers
8k views

How to set URL alias automatically for a content type WITHOUT using Pathauto? Which hook to implement?

Pathauto can do the job easily for all content types, but in my case I only have one content type URL that needs to be customized, and I would prefer to not install Pathauto and Token. Can anyone ...

1
12 13 14 15
16