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
1
vote
0answers
543 views

How can I get Views pages with taxonomy arguments display to fire after URL Alias (Path Auto)?

Right now I have a Views page that shows all results of the content type it filters by. If there is a taxonomy argument present (Contextual argument: Taxonomy ID: validate by Name to taxonomy ID) then ...
0
votes
1answer
198 views

Use Pathauto with Image Name

With Drupal 7 I'm trying to use Pathauto to create aliases for images that we upload. The images are renamed with File Field Paths. An example of what I'm trying to do What I'm trying to do Image ...
0
votes
1answer
36 views

Creating content regarding to node address arguments

Say it I have such node alias: example.com/content/my-fancy-page/ If user enters to node above, he will see default page content of my fancy page. After some process I will redirect him to this: ...
0
votes
1answer
308 views

Block not showing on a matching path (menu item duplicate)

I have a strange situation and would like to verify it with you. I have a menu block of main manu level 2+ links. Corporate [<--block title, level 1 of Main Menu] About Us [corporate/...
2
votes
1answer
106 views

Pathauto alias produces inconsistent aliases

I have a content type with its own Pathauto pattern studios/[node:title]. What could be the reason that the alias of the node entitled "Studio A" is studios/studio, whereas for "Studio B" (for the ...
2
votes
1answer
62 views

Duplicated content on homepage

I've found that my site is showing duplicated content, I think it was when I installed Pathauto. The nodes are not duplicated though but seems to be multiple aliases. I've since tried using Global ...
1
vote
1answer
1k views

Google doesn't see the friendly URLs

Google doesn't see my SEO friendly URLs, while the other search engines can. The browsers (IE, Chrome, FF), the RSS, the TweetFeed everything can see the SEO friendly URLs; in the XML sitemap, the ...
0
votes
1answer
262 views

Alias path precedence rule?

I just checked that an alias path named, say, any/path can point to N different existing paths. Is there any fixed precedence order as per which one will be processed? Or is it a random order?
1
vote
1answer
1k views

Problem with drupal_valid_path

In my custom module I'm using drupal_valid_path to check if a given alias exists before I create such. $target_alias = 'some/path'; if(drupal_valid_path($target_alias, FALSE) === FALSE){ // create '...
1
vote
1answer
1k views

Dynamic view per taxonomy term

I'm really stuck on a problem that I'm seeking assistance on. I currently have 3 content-types (Article, Photo and Video) and all of them use the same Taxonomy Vocab I've called Category. I've ...
0
votes
2answers
674 views

Where are the term tokens gone?

I have a hard time setting up URL alias patterns when it comes to taxonomy terms. Especially, I'm stunned that in the Replacement under Content Paths, a term reference field shows just one flat item [...
2
votes
1answer
1k views

Dynamic URL aliasing?

Let's say we have a section /latest-projects with a menu block listing nodes sorted descending by their post date. Thus, the first item will often change and be the freshest one. Is it possible to ...
0
votes
0answers
587 views

Pathauto won't turn off on specific node

I'm using pathauto, but I want to use a custom url alias on some of my nodes. I edited my node, unchecked the Generate automatic URL alias checkbox and typed my custom url into the path box and ...
14
votes
3answers
3k views

Disable pathauto for nodes created with migrate module

I'm using migrate to import a bunch of nodes and I want to set the path alias during the migration. I am able to import the path alias just fine like so: $this->addFieldMapping('path', 'url_alias')...
0
votes
0answers
113 views

Set the node url the same as term url

It's enough for me to have taxonomy term page as node page. I use Pathuato and Token to set auto Urls. For my node I choose token with term's path [node:field-tag:url:path]. But after creating a ...
1
vote
0answers
138 views

Same forum in multiple menus?

I'm building a site which has several "guide" sections, each with their own menu. Think "London guide", "Paris guide", "Berlin guide" etc. All of these guides will share the same forum - call it "...
0
votes
5answers
3k views

Complete export of Drupal nodes

I am programatically generating nodes in my local Drupal 6 installation. I have to do it locally because I don't have access to some of the more nifty PHP commands / modules that I need in order to ...
1
vote
0answers
79 views

Prefixed node path aliases with arguments in menu

I already have code that will take a path such as www.example.com/site/123/campaign/456/mynodealias. It loads the aliased node with extra arguments, site and campaign, which could change at any time ...
0
votes
1answer
265 views

Is it possible to address a single item of a field collection in pathauto?

I'm making sort of a slideshow for a customer The slideshow has a field collection which has itself several fields that contain the actual content of the slides (headline, text, image, alt text, ...
4
votes
2answers
1k views

Setting up regex-style rewrite rules within Drupal?

I have a couple of legacy rewrite rule redirects that I've traditionally put in .htaccess. For instance, paths are of the format: story/[story:title] And paths like: story/[story:nid] redirect to ...
1
vote
1answer
3k views

How can I replace a custom token?

I am trying to add a custom token in pathauto. I have a token [story-page-number]. Then in my hook_pathauto_alias_alter() I am trying to replace it using token_replace(). Something is not quite ...
1
vote
1answer
1k views

Why do I get a redirect loop (302) when using path-auto patterns on taxonomy terms?

I am using pathauto to set up my URL's at the moment and they are working fine for nodes. However when I set up a rule for taxonomy terms using [term:name] as the pattern I end up with redirect loops. ...
0
votes
2answers
2k views

Hierarchy taxonomy terms for node path in drupal 7

I have a vocabulary with 3 levels and a node type with a term reference to that vocabulary. When I create a node of that type I choose a term in the deepest level of the vocabulary and now the ...
3
votes
1answer
1k views

Rewrite user edit page url

On my Drupal 7 website, I would like a uri like folder/subfolder/preferences to be an alias for the user edit page user/<uid>/edit for all users. To be precise, when a user navigates to ...
3
votes
1answer
354 views

URL alias error

I want to configure the URL alias patterns on my site. When I try visiting the http://localhost/mysite/admin/config/search/path/patterns, I get an error saying "The website encountered an unexpected ...
2
votes
1answer
3k views

URL patterns with entity reference [duplicate]

Possible Duplicate: Path alias tokens and node references I'm having some difficulties setting up url patterns for my drupal project. The site has 3 different content types, Main category, sub ...
3
votes
2answers
1k views

How do views Contextual Filters behave with Pathauto?

I have Pathauto installed, so URLs to nodes are not like node/3. My question is that if I write a View with a contextual filter for looking for node/3, will it work? Note: This contextual filter is ...
0
votes
2answers
1k views

Pathauto doesn't work anymore when i change the default language

I've got a big problem this morning. I'm working with english as default language Administration » Configuration » Regional and language. It's much more easy to me to work with the interface in ...
1
vote
2answers
1k views

path alias hook menu i18n

Is it possible to make path alias that is not storing in database, like using system hook menu path I want to make url for en/weather and rs/vreme. e.g <?php function weather_menu() { $items =...
0
votes
3answers
1k views

Auto URL Aliasing for Custom Menu Paths with Term Id

Here is my problem. I have created a view with path as groups/% where % is a term id. Now, i would like to create auto aliases for all groups/% with % as a term name. Ideally i would like to add ...
2
votes
4answers
618 views

How to redirect by adding something after pathauto url?

I am trying to do a simple thing. Whenever an anonymous user views a content , I want to redirect the user to node's-url/#overlay=signup So, how do I modify the URL to use #overlay=signup at the ...
6
votes
7answers
5k views

Bulk update for unchecked “Generate automatic URL alias”

I have a lot of programmatically generated nodes with the option "Generate automatic URL alias" unchecked, so i can't use the Bulk Update of the pathauto module. How can i to bulk generate the ...
0
votes
1answer
278 views

Should I disallow drupal path or alias by robots.txt?

I have 2 languages enabled on my site English and Japanese. Japanese is the default and English has prefix "en". I want search engines to crawl one View page only in Japanese. So I decided to use ...
4
votes
1answer
1k views

How can I specify the URL alias when importing nodes into Drupal 7 (with the Feeds module)?

I'm importing a site into Drupal 7, using the Feeds module. I don't see any way to specify the URL alias for each node (which I want to control on most every page). How can I do this? (If the Feeds ...
0
votes
2answers
1k views

Path field gives wrong url

I made change in setting.php for base url $base_url = 'http://www.example.com/drupal Pattern for this content type paths are [node:title] pathauto works ok, in the database path is exactly as ...
4
votes
2answers
7k views

Create Alias URL to taxonomy term page with TID

I am trying to figure out how to create a url-alias friendly url to a taxonomy term page with only the tid of the term. I know drupal does this automatically in the node, but I am trying to do this in ...
6
votes
2answers
8k views

Change templates based on path alias

What is the easiest way to select a template based on path alias. For example, if I have the following URLs: http://www.example.com/mydirectory/page1 http://www.example.com/mydirectory/page2 http://...
0
votes
1answer
2k views

Profile2, url rewrite

How do I create a path like this www.example.com/PROFILE_NAME/FULL_NAME FULL_NAME is a Profile2 field. With pathauto you cannot modify profile2 entity.
0
votes
2answers
1k views

how to change hierarchical taxonomy path using Pathauto

i have posted it on drupal forum also but there was no answer. Here is that: i am really working hard to know how i can add sub-categories in drupal 7. so i want to change the path of parent terms ...
6
votes
1answer
1k views

An alternative for pathauto and token

I'm considering alternatives to pathauto module for automatic URL alias generation. The reasons I want to stop using it are the following: Most of the aliases are [node-type]/[node-title] so I do ...
0
votes
1answer
291 views

New URL for the node overrides the URL of existing node using pathauto module

I'm using Pathauto module to set the URL for the nodes in my site. I have already created about 20,000 nodes in my site. Usually, the Pathauto module doesn't allow to the users to create the node with ...
0
votes
1answer
206 views

Drupal path linking to wrong content

I have a content type for news. All my news nodes use the pathauto path: "node/[title-raw]". However, when I click to go to view any of my news items, instead of displaying the news item, the page ...
0
votes
0answers
78 views

How can I add some text to the url only if a user is logged in?

I need the url to have something like www.example.com/logged-in/rest-of-url . I can't seem to find much about changing the url other that when I add a new page or if I want to do an alias. Does anyone ...
1
vote
0answers
277 views

Why does my page content repeat?

I have a content type I created called News. The pathauto pattern is "news/node title". I created a view page to list all the News. The path to the view page is "news". When I go to the view page, ...
2
votes
4answers
3k views

Organic groups, group content types and pathauto

In pathauto module settings I have localhost/[node:group_group] for all group types. I have few group types: Ex Technology, Arts, Design etc and within each group type you can create as many ...
3
votes
2answers
1k views

How to rewrite link to taxonomy term in Views when using Pathauto?

The default language of my site is English. Taxonomy terms are translated using Entity Translation. I have created a view that uses aggregation to show Japanese terms (name provided by the Title ...
1
vote
1answer
73 views

Cannot view individual article, instead the node's link displays all articles

I cannot figure out what I am doing wrong. I'm using Drupal 7 and the Omega theme. I'm using pathauto to have nice paths. I have the built-in article content type which I renamed to "news". The ...
0
votes
2answers
1k views

Path alias as arguments in views

I would like to pass path alias as arguments to a views page. I tried the two methods one and two but unfortunately this doesn't works. What I want to do is, example.com/box/portfolio link should ...
4
votes
3answers
8k views

Path alias tokens and node references

I'm trying to figure out if path aliases are even capable of what I'm trying to do, or if I need some other sort of module. I have a content type "project" and a content type "mockup". A "project" ...
3
votes
1answer
4k views

Getting the first URL alias for a node in a SQL query

For some backups and exports, I need to fetch the URL-aliases for each node in SQL. The url_alias taqble, however, has no foreign key to the node table (nid) nor the other way around, it seems. Is ...