Questions about path aliases, a way of creating pretty human readable URLs to replace system urls like node/[nid].
0
votes
1answer
7 views
hook_path_update (and insert and delete) not getting called
I've added the following methods to my module, saved, and flushed all caches on my site. I have double checked that my module is enabled and working properly in all other respects.
function ...
0
votes
0answers
6 views
Using pathauto to create multiple aliases, one for each term?
If I have a taxonomy tags so that I can tag a node with foo and bar and baz, is there any way to make the pathauto module create three aliases?
If it would normally create content/my-new-node, is it ...
0
votes
2answers
22 views
D6 - Rule to simply redirect path to login
Currently I'm trying to add create a rule that simply redirects anyone from /node/add to /user/login. It's intended to be part of a larger rule, but I'm having No luck with this
Steps of the rule are
...
0
votes
1answer
40 views
Pathauto URL alias not working (using nginx)
I'm having several problems with URL paths (Drupal 7). I think they are related with nginx configuration, because I'm experiencing this problems since I migrated the site from an apache server to an ...
0
votes
1answer
18 views
Keep URL the same after changing page title
I create alias for every pages on my site. For example, if a page is called "My Page", then the alias will be "/my-page".
Is there a way to keep that URL the same even if I rename the page "My Page ...
1
vote
3answers
36 views
How can I get final URL of newly added node from hook_node_insert()?
I have installed pathauto and implemented hook_node_insert in my module, the problem is when I use entity_uri to get new node's URL I will get node/xxx instead of pathauto url alias.
How can I get ...
0
votes
0answers
33 views
Can we update taxonomy terms in bulk?
I have lots of taxonomy terms in Drupal 6, and I want to update all the URL aliases in bulk.
Is it possible or not? How can I do it?
0
votes
1answer
27 views
Menu doesn't link to alias URL
I'm having difficulty on a fresh Drupal installation getting the menu to use an alias (let's say "foo") rather than "node/#" link. The alias works when I type it straight into my browser. When ...
1
vote
1answer
36 views
Custom Path Alias with Initial Letter as Token
For various reasons, I need to change my custom path alias for a taxonomy type as follows...
FROM:
/composers/aardvark
TO:
composers/a/aardvark
So I'm looking at either creating a custom token, or ...
0
votes
0answers
22 views
Drupal always creates its own URL aliases, even when I tell it not to
I don't know if this is a bug in Drupal, or if there's a configuration somewhere that is causing the problem, but when I create a new page or edit an existing page, Drupal (always? often? sometimes?) ...
1
vote
0answers
58 views
How to cache url aliases properly in Drupal 7
I have heard Drupal 7 caches url aliases per page. This is not useful if you are caching pages in Varnish for example. The D6 module Pathcache was effectively for this purpose however it does not have ...
2
votes
2answers
35 views
How to change all hyperlinks in the content
Hi i am new to the drupal and i got problem in my site in the hyperlinks.
I have book copy module by which i have created one copy of the book.
After creating the book i set aliases to content/newbook ...
0
votes
1answer
31 views
Create path alias for hook_menu URLS based on node information
I'm looking for guidance on how to dynamically create a path alias for dynamic paths that I create in a module using hook menu. For example, I have a module that defines a path such as ...
1
vote
2answers
46 views
drupal_match_path() for multiple wildcard patterns?
I want to add some CSS and JS to multiple matched wildcard URL patterns. According to Add javascript to multiple specific urls, I can use a wildcard using drupal_match_path() and that works well for ...
3
votes
1answer
49 views
Unable to set Drupal environmental variables using Drush alias
$aliases['opendoor_stage'] = array(
'uri' => 'stage.opendoor.com',
'root' => '/var/www/stage.opendoor.com',
'db-url' => 'mysql://someurl',
'path-aliases' => array(
...
2
votes
1answer
38 views
How to programmatically uncheck 'Generate automatic URL alias' option for all nodes
I've created some nodes programmatically and set the path alias. But when I then go into edit the node the 'Generate automatic URL alias' option is still checked, even though my alias is shown in the ...
0
votes
1answer
62 views
Context Filter with Path Alias in URL
Quick Summary: how do I pass a alias in a URL to a view's context filter, when that view is located somewhere in the site.
I've read dozens of similar articles, but nothing that directly makes this ...
1
vote
0answers
61 views
Hierarchical taxonomy fileds' values as node path in Drupal 7
I have a vocabulary with 2 levels of terms. As my term names are usually rather long (e.g. "Institute of Computer Science and Information Technology") I added a field "short_name" to the vocabulary ...
0
votes
1answer
53 views
How to alias / rewrite path to theme?
The paths to css/js/images in a theme look like /sites/mysite.org/theme/*
Is there a way to rewrite those paths to – let's say – /mytheme/* ?
0
votes
1answer
104 views
D7: Change Drupal “Link” field to store node url instead of alias for internal links
I am using the "Link" field in Drupal 7 to store links. Sometimes these links are internal and sometimes they are external. In the case of internal links, I would like to be able to store the system ...
2
votes
3answers
135 views
Rebuild all paths for a content type
I want to change all paths for a given content type.
For example is would change all node of type "image" that are currently at
/[some_token]/[nid]
to
/photo/[nid]
I am using path auto and I ...
1
vote
1answer
225 views
How to get url alias of a link, when rewriting field output in Views
I have an image field in Views, for which I must use "Rewrite output" option. The output of the image field is this:
<a href="/taxonomy/term/[tid]" title="Album "[name]"" ...
1
vote
1answer
40 views
Old site migration and keeping links (as aliases)
I'm migrating an older site into Drupal 7 and have had a lot of success so far. One item where I'm stumped is on links to user profiles. The older system would link to teachers via
...
0
votes
1answer
26 views
How to map a URL to an attachment
I'd like to have a simple and clean URL for a PDF file, such as
http://www.examples/file1
that maps to an attachment in a Drupal node, rather than using something like
...
0
votes
0answers
42 views
Display view field on pages with specific path alias
i have a view block - that shows 3 last images of my content type sidebar image(block is displayed on every page). Content type has two fields - image and path - url path alias, for example ...
0
votes
1answer
31 views
Can I turn a list of Aliases into a menu structure?
So I'm elbow deep in a massive migration from a home grown CMS. So far I've been successful at using Feed Import to slurp in CSV exports of the old MySQL database. (The old database contained page ...
0
votes
1answer
48 views
Creating a menu structure based on Content Types Alias
I have imported in a bulk of content via a CSV Feed Importer (see Migrating content from older custom CMS). It worked splendidly. I was even able to take in each of the pages old URL and create an ...
1
vote
1answer
67 views
Should I rewrite my links into aliases?
Is it of any advantage, in addition to using Global Redirect, to rewrite html links from /node/nid to /article/this-is-the-title, even though in both cases traffic is directed to ...
0
votes
1answer
57 views
Menu structure and URL paths
I am using a Superfish 2 level navigation menu, and have 3 sub-items under an item.
The url path for the second level item is NOT item/subitem but instead just subitem, if that makes sense.
I've got ...
0
votes
1answer
30 views
Why is my alias “NULL” in a test?
I am using Drupal 7, I have Pathauto enabled, and my user has permissions to create new aliases.
When I manually create a node, uncheck the checkbox for automatic alias generation, and enter a custom ...
0
votes
1answer
42 views
Creating custom node aliases inside a simpletest
I am attempting to write simpletests to replicate the steps to reproduce on this d.o issue.
I need to create a test node with a custom alias, as if I had unchecked the "Generate automatic URL alias" ...
1
vote
0answers
33 views
How do I ensure active menu items are highlighted for Views with Better Exposed Filter arguments
I'm using Better Exposed Filters on a clothing site. There are various types of products listed using Better Exposed Filters (to choose between Mens/Womens/Kids).
The Mens and Womens pages are ...
5
votes
2answers
123 views
How to deal with deleted posts: Returning 410 status and preventing path re-use
For my jobs site, I want to return 410 status for those jobs which expire or are removed permanently. How can I do it so that 410 instead of 404 is returned for say job related node types( they'll be ...
1
vote
1answer
119 views
Multiple aliases, context and menu items (Drupal 7)
I have a site with 2 sections of content, A and B. I have a node, 'Z' that needs to appear in each area. I also have a different menu for each area, e.g.
Section 'A'
link 1
link 2
link Z -> should ...
0
votes
1answer
58 views
Setting the behavior for Pathauto when a Duplicate exists?
I'm creating a Drupal 7 site which will consist of information about many different organizations across North America. The profiles will be submitted by the organizations themselves and it is very ...
1
vote
0answers
112 views
URL aliases and Entity Translation (menu name replacement pattern)
I am using entity translation (Field translation) for my nodes, and set the menu name on each 'page'.
The menu itself is arrange to basically have a duplicate tree in the same menu each with a ...
0
votes
0answers
52 views
Views argument url use username instead of UID number
How to make link created in views with UID as argument show username istead of number ?
Example:
Instead of /5/images show /username5/images
1
vote
2answers
65 views
Views: Change path and redirect old to new path?
I would like to change the path for one of my Views. How do I redirect the old Views path to the new one including all the variables that may follow the old path?
0
votes
1answer
1k views
Path alias creates redirect loop or redirects to the front page
When I call our sit "www.example.com/contact-us" I'm getting the following error:
Oops, looks like this request tried to create an infinite loop. We do not allow such things here. We are a ...
1
vote
0answers
54 views
How do I add a term reference name to the Pathauto pattern for a content type?
I'm trying to create a website with 2 sections, Home and Business. For this I have created a vocabulary called 'Page Type' and added those section names to it.
I've added a term reference field to my ...
0
votes
0answers
32 views
Profile pages with pathauto and views
Ill try to describe best i can... Here is an example:
I have node that is main content for each profile - band.
Each user can create its own band and only 1 band (1 main url).
Pathauto for bands are ...
0
votes
0answers
96 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
0answers
42 views
Viewing termed content and menu trail problem
Problem
I have a hard time setting active trail in my Main Menu. Despite trying out Taxonomy Display, Taxonomy Menu Trails, Menu Trail by Path, Menu Position rules, I cannot get desired menu titles ...
0
votes
1answer
30 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
65 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 ...
2
votes
1answer
51 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 ...
1
vote
1answer
152 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
57 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
38 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 ...
0
votes
0answers
212 views
Custom language switcher - URL Alias paths based on language
I need a custom language switcher for a website, I created succesfully the switcher, the problems have arrived when using URL alias.
With he las modification each content type can be translated and ...