Does anyone know how to sort order of the jobs module based on Job ID. This seem like the only way I have control over the order it's presented...
Thanks!
[SOLVED]Jobs Module Sort order by job ID?
[SOLVED]Jobs Module Sort order by job ID?
Last edited by giggler on Thu Jan 10, 2008 7:20 am, edited 1 time in total.
Re: Jobs Module Sort order by job ID?
giggler,
You mention the jobs module. Which one is that? I find in the development area with search on 'job', the following two:
You mention the jobs module. Which one is that? I find in the development area with search on 'job', the following two:
- job listing: http://dev.cmsmadesimple.org/projects/jobs/
- job scheduler: http://dev.cmsmadesimple.org/projects/jobscheduler/
Re: Jobs Module Sort order by job ID?
oh it's the job listing. Need to display the listing a certain way, but the default is by job_date, Job_category etc, but not by job ID which is something you put in yourself so there's a bit of control over the way it's sorted. I dont' know where do go to add job ID as a sort order....
Re: Jobs Module Sort order by job ID?
You know what. I tried it with sortby="job_id" and it worked. The confusing part was the help file which had "jobs" instead of "job" and id was not listed:
(optional) sortby="job_date" - Field to sort by. Options are: "jobs_date", "summary", "jobs_data", "jobs_category", "jobs_title". Defaults to "jobs_date".
Re: Jobs Module Sort order by job ID?
Hi, I've have problem sorting out Job ID too. I've tried the following but to no avail. I've checked the table in database and figured out that the ID field is called "hrid". Hence I tried the following, but it still not working. Can you help by checking out if is a correct tag:
{cms_module module="Jobs" sortby="job_id"}
{cms_module module="Jobs" sortby="job_hrid"}
{cms_module module="Jobs" sortby="job_id"}
{cms_module module="Jobs" sortby="job_hrid"}
Last edited by Anonymous on Tue Feb 05, 2008 7:10 pm, edited 1 time in total.
Re: [SOLVED]Jobs Module Sort order by job ID?
I've used this tag: {cms_module module='Jobs' sortby="job_id" }
Let me check the code again. Maybe there was something else I changed in the source..
K, I can't remember if I did anything to the source. the only thing I can do is zip up the files I have for you. That's what I get for not keeping track of things... PM me if you want the files
Let me check the code again. Maybe there was something else I changed in the source..
K, I can't remember if I did anything to the source. the only thing I can do is zip up the files I have for you. That's what I get for not keeping track of things... PM me if you want the files
Last edited by giggler on Wed Feb 06, 2008 7:42 pm, edited 1 time in total.
Re: [SOLVED]Jobs Module Sort order by job ID?
oh thank you, I manage to solve it however, thanks to duketown, I have another post here cause I am worried that no one reply to this post as its already solved.
My param is {cms_module module='Jobs' sortby='job_hrid'}
and I've change line 96 in action.default.php to remove the ' '
I posted it here http://forum.cmsmadesimple.org/index.ph ... 238.0.html
hope this helps as well
My param is {cms_module module='Jobs' sortby='job_hrid'}
and I've change line 96 in action.default.php to remove the ' '
I posted it here http://forum.cmsmadesimple.org/index.ph ... 238.0.html
hope this helps as well