Page 1 of 1

How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 9:56 am
by Anastasis
For my employer's website currently being redesigned using CMSMS I need to be able to provide a list of items much like a news summary list (e.g. heading + summary text), but for jobs (e.g. job title + summary).

I thought the news module with a "job" category could do the job (no pun intended!), but when adding a new news article there is not the option to add custom content sections (i.e. {content block="Salary" oneline='true'}) as with regular content pages. I need to be able to capture custom data text for: Location, Start Date, Duration, Salary and RefNo. These items do not need to be included in the summary list, but I will need them to appear in a table in the detail page for a job, hence my need to enter them explicitly when entering the content.

In every other way, such as providing a date-ordered list, I think the news module could do what I need. Is there a way to include custom content block sections in the news article data entry or is there another CMSMS module that would do what I need for this?

Re: How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 10:06 am
by cyberman
Hmm, maybe you should try the combination of formbuilder / formbrowser module?

Re: How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 12:29 pm
by Anastasis
cyberman wrote: Hmm, maybe you should try the combination of formbuilder / formbrowser module?
Thanks cyberman, although I am not sure how these modules relate to what I need. Do you mean by virtue of capturing data from the website visitor? I don't need that functionality. The news module seems to be just what is needed apart from needing to be able to enter the custom fields such as Location, Salary etc in separate fields as a CMSMS editor.

Re: How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 12:41 pm
by cyberman
As you know News module has not custom content sections for Location and so on.

But with suggested combination you can add fields like you want, insert data in admin area which are stored in database and browse in Frontend.

Another option could be cataloger module ...

Re: How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 3:38 pm
by Anastasis
Thanks again. I will try to check these out.

In theory all I need is a way of reporting, in summary form, in reverse date order (i.e. the newest first), the job title (which will need to be hyperlinked through to the job detail page) and first 60 characters or so of each job description. The rest of the information can be stored in the detail page.

So is there a programmatic way of producing a list of all pages of one type, e.g. where the $page_alias begins with "resourcing-opportunities-" such as ""resourcing-opportunities-CKCJ1304" (the last part being the job RefNo value)?

It sounds like it should be a simple task to gather that information and output to a page, but then saying that I don't have a clue how that would be done, so I am probably talking off the top of my head!  :P

Re: How to make a news-like index but for jobs?

Posted: Tue Jun 05, 2007 5:02 pm
by cyberman
Maybe it's much easier ... create a normally structured CMSms page like

1. Home
2. Jobs
2.1 New Jobs
2.2 Jobs by typel
2.2.1 Construktion worker
2.2.2.1 Job in Idaho
2.2.2.2 Job in Ohio
2.2.2.3 Job in Washington DC

For 2.1 you can use tag recently_updated with some modifications to show the first part of the content.

On page 2.2.1 you can use tag sitemap with same modifications.

Deactivate option "Show in menu" for all pages in fourth level. Cause named tags have links it looks now like a detail page

The bonus is you can use block parameter for content too.

By the way - you can limit the output of every Smarty tag with a builtin modifier. It looks like that

Code: Select all

{content|truncate:60}
It limits output of content tag to 60 signs. So you will have a pseudo summary. For more informations please look here

http://smarty.php.net/manual/en/languag ... uncate.php
So is there a programmatic way of producing a list of all pages of one type,
Yes, there is - in current MenuManager. Please look at help for parameter includeprefix. With that you can show all pages with the same prefix.

Re: How to make a news-like index but for jobs?

Posted: Thu Jun 07, 2007 2:29 pm
by Anastasis
Cyberman - many thanks for your reply - sorry for not replying sooner, but I have been sidelined on to other things not CMSMS-related and still am at the moment which is frustrating.

I can certainly see how using the Menu Manager gives me a good way to do this although I am unclear how I could also incorporate the summary of information for the job (in the same way as this but with a new design and all jobs listed on one page: http://www.chasecooper.com/Resourcing-O ... manent.php). Where would I be able to gather the summary info from to display under each 'menu' item of job names?

If this is not possible, then maybe I could get away with just listing the job name, location and reference by incorporating them into the page title. It wouldn't be so bad and would make for a more compact if less descriptive list.

Hopefully I might get some time before the end of the week to try this out.

Thanks again. :)

Re: How to make a news-like index but for jobs?

Posted: Fri Aug 24, 2007 10:47 pm
by israel.cefrin
Hi all
I read all the answers and I did not understand how to implement a pagelist.

I would like to make some tpl as this:

{begin loop}
{title}
{thumbnail}
{content}
{bigpicture}

{end loop}

Should I use a menu template ? How ?

Tks in advance

Israel

Re: How to make a news-like index but for jobs?

Posted: Sat Aug 25, 2007 3:17 am
by Elijah Lofgren
If you want to try PageBlocks, you may be interested in this: Re: Employment Opportunities - Suggestions? ;)

Re: How to make a news-like index but for jobs?

Posted: Sat Aug 25, 2007 3:27 am
by israel.cefrin
Tks Elijah, I will look it.
Sorry for my quick exit from IRC, but my ISP is falling all time.