[SOLVED]Jobs Module Sort order by job ID?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

[SOLVED]Jobs Module Sort order by job ID?

Post 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!
Last edited by giggler on Thu Jan 10, 2008 7:20 am, edited 1 time in total.
Duketown

Re: Jobs Module Sort order by job ID?

Post 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:
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: Jobs Module Sort order by job ID?

Post 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....
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: Jobs Module Sort order by job ID?

Post 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".
dinmix
Forum Members
Forum Members
Posts: 29
Joined: Sun May 06, 2007 2:49 pm

Re: Jobs Module Sort order by job ID?

Post 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"}
Last edited by Anonymous on Tue Feb 05, 2008 7:10 pm, edited 1 time in total.
giggler
Forum Members
Forum Members
Posts: 197
Joined: Tue Oct 09, 2007 7:08 am

Re: [SOLVED]Jobs Module Sort order by job ID?

Post 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
Last edited by giggler on Wed Feb 06, 2008 7:42 pm, edited 1 time in total.
dinmix
Forum Members
Forum Members
Posts: 29
Joined: Sun May 06, 2007 2:49 pm

Re: [SOLVED]Jobs Module Sort order by job ID?

Post 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
Post Reply

Return to “CMSMS Core”