Active
Project:
Email Field
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 May 2008 at 17:47 UTC
Updated:
17 Oct 2011 at 19:35 UTC
I've setup a contact directory and use the e-mail field to automatically generate e-mail forms for each person. I use pathauto to generate friendly URLs for each person's profile page (e.g. /contact/johndoe.html). When a user clicks on the link to the e-mail form, it brings up the form with a URL like /email/1130/field_email (where 1130 is the node ID for johndoe.html).
Is there a way to make the e-mail form URL friendly? Since these forms aren't content types, I don't see an option in pathauto to automatically generate these.
Rob
Comments
Comment #1
rgraves commentedAnybody been able to look into this?
Comment #2
bartezz commentedNo news yet... been 2 years :)
Cheers
Comment #3
jaskegreen commentedAny word on this for v7?
Cheers
Comment #4
bartezz commentedHaven't tried yet but maybe this helps;
http://drupal.org/project/path_alias_xt
Cheers
PS. since I only have a handful of forms I managed by creating manual path aliases
Comment #5
tnanek commentedI've run into this issue on Drupal 7, and thus am providing my solution here.
I use the rules module to help fill in gaps that I feel are left by maintainers through the user interface.
Anyhow, here are two rules. You should alter it as needed prior to importing/saving it, since this is dependant on the specific url's in use. I am using pathauto to have my content at
/people/[node-title]and thus wanted this to be at/people/[node:title]/email, and my field name isfield_person_email, and content type is person.These rules a) (after saving) insert a url alias when a node of type person is saved with an entry in the field and no path to overwrite and b) (prior to saving) delete the url alias, should one exist, when a node of type person has its title changed, or the field is left empty.
I've only tested the first of them. At the moment I don't have the time to test the latter. I should this evening and hopefully will remember to edit this post once I do.
And I'm using Rules-7.x-2.0 for these.