Hi,

I have a few aims with this Drupal project and would really appreciate any input on the following aspects of its structure and function: -

Structure
(i) Jobs are nodes
(ii) Jobs are in Departments, which must be nodes
(ii) Departments are in Companies, which must be nodes

Function
(iv) It should be possible to find all Jobs in a Department, all Jobs in a Company and all Departments in a Company
(v) It should be possible for an end-user to create a new job and associate it with a Department and Company, or create them if they don't already exist.

I'm currently using 'Node Hierarchy' which relates the Company->Department->Job however it doesn't allow the end-user to easily create the Company/Department and relate them to the Job if they don't exist already. I'm also using Taxonomy to describe the Job's details (e.g. Admin->Data Entry Worker). This approach is also proving difficult to theme (e.g. it's not obvious how to extract the Job Type taxonomy term and present it with CSS in the full-nodeview).

It's been suggested that CCK fields would allow for much easier theming and may be more suitable overall. I've also been told that the Content Taxonomy module can provide the best of both worlds (i.e. taxonomy and CCK).

How would you go about this?

Thanks

Comments

dadderley’s picture

You should pick up this book from O'Reilly, Using Drupal (http://drupal.org/node/333901)
There is a pretty good discussion of this sort of site functionality there with very good tutorials.

Essentially the functionality is handled CCK Node Reference which creates relationships between nodes. Then you do some magic in views where you make use of these node relationships.
The book is worth the money.

ck9’s picture

Thanks, I found the book and seen it has a whole chapter on building a Job website which helped a lot.

There's still a couple of issues I'm not sure about though. I want the end-user to enter a department and company, and have their nodes be auto-generated, however, two companies can have departments of the same name (e.g. IT Department). Having a CCK field for Department seems to lose the 1-1 link I need. The example in the book only has one company (a university) so this isn't an issue there. Any ideas?

ck9’s picture

Nevermind I learned that Views Arguments can be created to allow searches within specific companies and departments. Great =)