Closed (fixed)
Project:
Job Search
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2009 at 01:08 UTC
Updated:
1 Feb 2014 at 20:50 UTC
Jump to comment: Most recent, Most recent file
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.