Change to Job module

1 view
Skip to first unread message

The Sage Colleges Webmaster

unread,
Nov 18, 2010, 12:09:24 PM11/18/10
to Reason Discussion
We've started finally using the job module to start posting positions
on our website. The problem we've been running into is that our jobs
are never posted for a set period of time (jobs module requires "How
long should job be posted? Number of days"). Our positions are usually
"Until Filled" -- or in the case of our Grad Assistant jobs, revolving
from year to year.

Any suggestions on how to change the functionality on the Jobs module
to either make number of days not required, or have an option for "0"
being infinite or something similar.

Thanks.

- Kevin
The Sage Colleges

Mark Heiman

unread,
Nov 18, 2010, 12:22:57 PM11/18/10
to reason-d...@googlegroups.com
Kevin,
In the core jobs module (reason_4.0/lib/core/minisite_templates/modules/jobs.php) line 75 ("$es->add_relation( 'adddate...") is what limits the displayed jobs to those within the specified time range.

You could comment that line out, which would result in you seeing all active jobs, regardless of duration.

You could also modify the SQL in that line. Something like this:

$es->add_relation( '((duration.duration = 0) OR adddate( job.posting_start, interval duration.duration day ) >= "'.date( 'Y-m-d' ).'")' );

would allow you to use 0 to specify infinite duration, but still have other jobs with limited durations.

Hope that helps!

Mark Heiman
Carleton College

> --
> You received this message because you are subscribed to the Google Groups "Reason Discussion" group.
> To post to this group, send email to reason-d...@googlegroups.com.
> To unsubscribe from this group, send email to reason-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/reason-discussion?hl=en.
>

Reply all
Reply to author
Forward
0 new messages