Active
Project:
Get Directions
Version:
7.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2012 at 09:31 UTC
Updated:
2 Jul 2012 at 08:57 UTC
At the moment the url to the 'get locations' link is http://www.site.com/getdirections/location/to/209.
Is there a way to integrate with url aliases or some other way to change the url so it has the node title instead of the nid.
eg I want it to read http://www.shulopedia.com/getdirections/location/to/school.
Thanks
Comments
Comment #1
hutch commentedCreate an alias to suit:
path
getdirections/location/to/209
alias
getdirections/location/to/school
Comment #2
LTech commentedI can do that for a specific alias, but I want all getdirection links to read getdirections/location/to/[node:title].
Is there a way to create a pattern for getdirections? (like there is for content types and taxonomy etc)
Comment #3
hutch commentedI'm not sure what you mean by 'pattern', but perhaps the Pathauto module will do that, I don't know, I haven't used it.
Bear in mind that the node Title cannot be guaranteed to be unique.
Comment #4
LTech commentedHow did you mean to create an 'alias' in comment #1? Was that using the pathauto module?
I don't want the url to read /to/nid (number) it doesn't look so great for the users. Is there a way to put text in so it happens automatically for every node? I tried using pathauto but they don't have the option to set a fixed url pattern for 'getlocation', only content types, taxonomy and users.
Comment #5
hutch commentedTo create an Alias go to admin/config/search/path
I know what you want to do, there is no automatic way of doing that and there won't be because such a 'feature' would be too unreliable for the reason already stated: the node Title cannot be guaranteed to be unique
If Pathauto won't do it then perhaps Actions and Rules might be set up to automatically generate an alias but you will need to know what you are doing.