Hello all,
This is such a great mod. This is just what I needed & it settled in smoothly.
Just one usability question - I will like to change the existing 'Apply for this Job link' (at the bottom of the job posting) to a button & also add the same button on top of the job posting so that this is clearly noticeable to the site visitors.
I am not a coder, but I guess something on the lines of the following in a block should do the trick, but I can't figure out how to call the node id as part of the url (/job/apply/nid) for the button action:
Thanks once again for this great module.
Comments
Comment #1
newdru08 commentedSorry the code didnt get posted above:
Comment #2
kbahey commentedYou can do some of that via http://api.drupal.org/api/function/hook_link_alter/5 and check for $links['job_apply'], and change its content.
Comment #3
xamountI did this by created a node-[insert_your_job_type_here].tpl.php
Then I wanted to display a big button instead of a job apply link so I did this:
Comment #4
xamountclosing this issue. Please re-open if you still have questions.
Comment #5
pvisser commentedCan you eplain how i do this :
I have this
// already authenticated user
if ($user->uid != 0) {
$variables['joblink'] = l(t('Submit an application'), 'job/application/node/'
. $variables['node']->nid);
}
How can i insert a button instead
Thank you
Comment #6
pvisser commentedCan you eplain how i do this :
I have this
// already authenticated user
if ($user->uid != 0) {
$variables['joblink'] = l(t('Submit an application'), 'job/application/node/'
. $variables['node']->nid);
}
How can i insert a button instead
Thank you
Comment #7
s13 commented@pvisser
I'm not sure but the following replacement should work:
Replace:
if ($user->uid != 0) {
$variables['joblink'] = l(t('Submit an application'), 'job/application/node/'
. $variables['node']->nid);
}
with:
if ($user->uid != 0) {
$variables['joblink'] = 'nid).' value="Apply for this Job">';
}
Comment #8
s13 commentedsorry use this instead:
Replace:
with: