Hi all, I am making a Job Listing site and have created 4 Primary links. One of these is called Our Jobs. When I post a new content type (Job), the workflow dropdown asks if I want to publish the job to the front page. I de-select this because I dont want it to be published there...

How can I make every new Job listing I create appear under the Primary link 'Our Jobs'?.

All 'Job' Content type will need to be published under the 'Our Jobs' primary link.

To create the Primary link 'Our Jobs' I went under Administer >> Menu >> Primary Links >> Add Item. On the path setting I typed in: node/add.

Do I have to give it a specific path name and then assign that path as the default place for publishing new content?? If so how do i do this?

Or wht is the correct way? I have searched for ages and am begining to pull my hair out : |

Please help me Drupallers!

Many Thanks

(I am using Drupal 5 with the Zen theme).

Comments

davemybes’s picture

There are two ways to do this actually.

Option 1:
1. Find a script in the PHP snippets handbook that will list all nodes of a specific type.
2. Create a new page node and set its input type to PHP and paste the code in there. You will most likely need to modify the code to show your node type, but it should be obvious how to do this in the snippet.
3. Give it a nice path name e.g. our-jobs
4. Now change your menu's path to the same path i.e. our-jobs

That page will then automatically show a list of nodes of type job.

Option 2.
1. Activate the Taxonomy module.
2. Go to content management > Categories and create a new vocabulary e.g. topic, and assign it to the Job node type.
3. Add a term to the vocab and call it Job. You can add more terms for other types of nodes, if you like.
4. When you're done, click List terms.
5. Move the mouse over the Job term and note its URL. It should be something like /taxonomy/term/1
6. Change your Job menu's path to this path in #5.

Now, when you create a new Job node, you will see the category term in a list. Select Job to tag your node with it. Your article will automatically appear on the Job page.
______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.

______________________________________________________________________________________________________

blackmac10’s picture

Hi and thanks for your reply incrn8, I would prefer to use option 2, however when I go to Administer >> Content Management >> Catergories I can't see how to create a Vocabulary. All I am able to do is 'Add Container'. I have the Taxonomy check box selected enabled under the Catergory module (Is that the correct one?). Or is Container the same as Vocabulary? Is Taxonomy Module a seperate module to Catergory module?

Please can you advise me as to which modules I need to enable/disable to be able to access and create a Vocabulary.

Im running Drupal 5.

Thanks in advance!!

blackmac10’s picture

Hey guys, im going nuts trying to figure this out... I can't see a Vocabulary tab. I read some stuff in the handbook and I assume a Vocabulary is a Group, and a Caterogry is a Term. But then what is the Container? All I have an option for is to create a Container. So what I did is:

1) Created a Container (Administer >> Container) with the title 'Job Listings'.
2) Under Container >> Container Information I selected Type 'Job'. Hierachy 'Single' and checked the 'Required' tab.
3) URL Path settings I typed in ourjobs (This is the path of the Primary link item in the menu)
4) Under 'Menu Settings' I selected Our Jobs as the parent item.
5) Publishing options I selected 'Published' and 'Published to Front Page' (With the assumption that 'Our Jobs' will become a seperate 'Front Page'.

6) Then I created a Catergory with the title 'New Jobs'.
7) Catergory Information was: Container > Job Listings and Parent I also selected Job Listing from the dropdown menu. Depth setting I put to -10
8) Menu Settings I selected 'Our Jobs' again as the Parent item.
9) URL Path settings I left blank
10) Publishing options I checked Published and Published to front page.

Now when I create a New Content type 'Job' it does not appear on the Our Jobs page. All I can see is the option to add child category or add child container.

If I go to Administer>> Content I can see that my job has been created but it is not being published to the Our Jobs page.

Please help me someone!!!!!!!

aaaaaarrrrggghhhh!!!!!!!!!!

davemybes’s picture

So, you're using the Category Module, eh? This module replaces Taxonomy with its own stuff, so you're not going to be able to do what I suggested in Option 2.

Personally I dislike Category Module and would recommend not using it at all. However, if you need it, then fine. I'm afraid I can't give you step-by-step instructions for doing this with Category module, because I don't use it. You're probably going to have go with option 1 in this case. You should be able to easily find a snippet in the PHP snippets handbook. Then modify it to get your node type.

______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.

______________________________________________________________________________________________________

icon123’s picture

Hi,

I am curious how to do something very similar, however, I'm insterested in option 1. I don't see any related snippets for 5.x, any suggestions or sample code? Thanks,

icon123