Drup

Page 135

8. Finally, add permissions for the new content type at Administer→User management→Permissions (admin/user/permissions). We want logged-in users to be able to manage their own job applications, and for editors to be able to manage any of the applications. Check the options shown in Table 3-17 and then click “Save permissions.” Table 3-17. Permissions for the Job Applications content type Permission: node module create application content

anonymous user

authenticated user

Checked

Checked

Checked

Checked

Checked

edit any application content edit own application content

site administration

Checked

delete any application content delete own application content

editor

Checked

That finishes the configuration of the form for the Job Application content type. Let’s take a look at the finished form as a user in the “authenticated user” role. After logging in with the username user and password oreilly, the form at Create content→Job Application (node/add/job) should look as shown in Figure 3-15. The user user was created for you automatically when you ran the Job Posting install profile.

Because job applications won’t be as important visually as job listings, we’ll skip configuring of the display options for this content type. You can still make these changes at Administer→Content management→Content types→Job Application→Fields (admin/content/node-type/application/fields). After a user creates a new job application, it should look something like Figure 3-16. An important thing to note in this figure is how our node reference field (Job) appears when given a value. The default behavior is a link to the original piece of content that is referenced. Clicking on the Alumni Director link from this application will take us back to the Alumni Director job. There are other ways to display node reference fields as well, which can be explored in the "Display Fields" tab on the Job Application type (admin/content/node-type/application/display). At this point, it’d be a good idea to populate your site with some content. Log in as either admin or editor with the password oreilly and create several pieces of Job content at Create content→Job (node/add/job). It’s also a good idea to create a few posts as user applying for a few different positions. Having several pieces of content will help with the next section.

Hands-On: Job Application Type | 111


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.