Hi, first off, thanks for the great module!
What I would like to know is how I can include some of the CCK feilds that I have added to the resume to the emails that are generated. I have a need to be able to receive all the info in an email.
Can this be done and if so, can anyone teach me?
I am guessing I need to add it to the function job_send_email function, inside the job.module file, to somehow call the cck field of that users resume.
Any help on this would be greatly appreciated.
Regards,
CKD
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 361295.patch | 1.35 KB | xamount |
| #10 | 361295_drupal6.patch | 1.14 KB | xamount |
Comments
Comment #1
kbahey commentedIn template.php add the following function:
This will then override the email that is sent. You need to add the field(s) you are interested in from $resume_node or $job_node.
Comment #2
Dokuro commentedSo If I have a question asking if they can relocate, using a cck field. Would I do this?
$body .= t("\nCan you relocate:", array('@relocate' => $resume_node->field_can_you_relocate));
In the code below.
Also, Thanks for the quick reply.
Regards,
CKD
Comment #3
Dokuro commentedJust want to make this active
Comment #4
kbahey commentedWhy ask when you can try it faster?
Go ahead and try it and see if it works. Report back either way and close if it does what you want.
Comment #5
Dokuro commentedHi kbahey,
I really appreciate your time here. I have done two different ways, both don't work.
And
Any tips on what I am doing wrong here?
Regards,
CKD
Comment #6
kbahey commentedAdd a line with
print_r($resume_node);, and it will show you all the stuff that you can include in the email from the resume node. You can then select the relevant field(s).Comment #7
Dokuro commentedThis works.
$body .= t("\nCan you relocate: @relocate", array('@relocate' => $resume_node->field_can_you_relocate[0][value]));
Need to get to the right level of the array, [0][value].
Thanks for the help!
CKD
Comment #8
kbahey commentedGreat to hear.
Now, your turn.
Can you write a paragraph or two summarizing this whole thing, so we can add it to the README.txt file and everyone can reference it going forward?
Comment #9
Dokuro commentedYeah, no problem. I want to add some if's or ternary operators to it, so that it will check to see if you have that in the resume and if so, then it will send it in the email. I use two different apps on my site, and have different cck fields in there, but I will be more than happy to write it up.
Don't know if I will get to it until this weekend, but when I do I will post it back here.
Again, thanks,
CKD
Comment #10
xamountHere is a patch explaining how the theme functions can be overridden.
Comment #11
xamountI have updated the docs.