Page 1 of 1
[SOLVED]Jobs Module Sort order by job ID?
Posted: Thu Jan 10, 2008 5:53 am
by giggler
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!
Re: Jobs Module Sort order by job ID?
Posted: Thu Jan 10, 2008 5:57 am
by Duketown
giggler,
You mention the jobs module. Which one is that? I find in the development area with search on 'job', the following two:
Re: Jobs Module Sort order by job ID?
Posted: Thu Jan 10, 2008 6:42 am
by giggler
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?
Posted: Thu Jan 10, 2008 7:11 am
by giggler
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?
Posted: Tue Feb 05, 2008 5:33 pm
by dinmix
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"}
Re: [SOLVED]Jobs Module Sort order by job ID?
Posted: Wed Feb 06, 2008 7:35 pm
by giggler
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
Re: [SOLVED]Jobs Module Sort order by job ID?
Posted: Thu Feb 07, 2008 8:35 am
by dinmix
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