I have a content type 'school' and an entityform that's called 'contact'...
I would like the URL path for the contact form to be:
www.example.com/node/nid/contact
It's important that the node ID be passed in the link to the entityform in this format rather than:
www.mysite.com/eform/submit/contactform?some_custom_field=[nid]
so that people can share the contact form easily.
It's also important that the contact form be an entityform
Any pointers to set up my entityform url so that it reflects the NID of the content that linked to it?
I am trying to set up URL alias for the entityform but am having trouble setting up the NID as a wildcard.
EDIT for my helper module I have...(we can ignore the entityform part of my question because I'll probably re-build the form) ... I am trying to get the letter generator to appear at /node/%node/lettergen but the %node wildcard isn't working ...
function lettergen_menu() {
$items = array();
$items['node/%node/lettergen'] = array(
'title' => 'Letter Generator',
'description' => 'Generate a Letter'
'load arguments' => array(1),
'page arguments' => array('lettergen_form', 1),
'access callback' => TRUE,
);
return $items;
}
THIS WORKS
function lettergen_menu() {
$items['node/%node/lettergen'] = array(
'title' => 'Lettergen',
'description' => 'A form to mess around with.',
'page callback' => 'drupal_get_form',
'page arguments' => array('lettergen_form', 1),
'access callback' => TRUE,
);
return $items;
}