Job Form
- CType
-
academicjobs_newjobform - Plugin
-
Academic, pluginJobs New, actionsJob Form JobandController:: new Action () JobController:: create Action () - Set
-
fgtclb/, or the aggregate setacademic- jobs- new- job- form fgtclb/academic- jobs - Templates
-
Templates/, with the partialJob/ New. html Job/and the field partials belowProperties/ Job. html Job/, see Change the fields of the new job form and Add a field to the new job formForms/
The job form as a visitor sees it.
The job form lets a visitor enter a job offer: its title, type, description,
dates, location, an image and the contact details. Which fields are required,
and how they are rendered, is set in the validation settings. The image is uploaded into the folder and within
the limits of the site settings
plugin.. The page that shows the
form loads a rich text editor for the description fields, which a site can
switch off, see Load the script or bring your own.
It is the content element for a site that accepts job offers from outside, from companies that advertise a thesis or a job for students, for example. Nothing a visitor submits is published right away:
- The form checks the submitted values. A rejected field shows the form again, with its messages.
- The job is saved hidden in the storage folder of the site, the site setting
plugin.. Its application deadline is kept until the end of the chosen day.tx_ academicjobs. persistence. storage Pid - One notification mail announces the job, see The notification mail about a submitted job.
- The visitor is redirected, to the redirect page or back to the form, and a confirmation message is queued, as the two options below decide.
An editor then reviews the job in the backend and publishes it. Until then a job list shows it only with Show hidden records. The form is not cached with the page.
Settings
-
- Type
- page
- Default
- empty
The page the visitor is sent to after the job is saved, usually a page that thanks for the submission and says what happens next. Without one, and with the page of the form chosen here, the visitor returns to the form, which shows the confirmation above itself, see Where the confirmation is shown.
A page chosen here decides alone. Empty, the site setting
plugin.applies, Default redirect page PID, can be overruled in plugin, which istx_ academicjobs. save Form. fallback Redirect Page Id 0and therefore no page by default. One content element thus overrides the page every other form of the site uses.When neither names a page, the deprecated setting
plugin.is used instead, the site setting Default list page PID that the detail page links back to, and a deprecation is logged. Set a redirect page rather than relying on it, the fallback is removed in a future version.tx_ academicjobs. settings. list Pid An event listener can replace the page this option resolved to, see AfterSaveJobEvent.
The page has to be one that can be linked in the language of the visitor, see The redirect page in other languages.
-
- Type
- select
- Default
- Use the site or TypoScript setting
Whether the confirmation is queued as a flash message after the job is saved. The confirmation says that the job was created and will be reviewed, or, when the notification mail could not be sent, that it was created and the visitor should get in touch.
- Use the site or TypoScript setting
- The site setting
plugin.decides, Flash message creation mode. Its values are those of the three items below,tx_ academicjobs. save Form. fallback Flash Message Creation Mode 1,2and0, and its default is0. - always
- The confirmation is queued after every saved job.
- never
- No confirmation is queued, on the form as on a redirect page. Choose it when the redirect page carries a confirmation text of its own.
- Suppress when a redirect page is set
- The confirmation is queued unless the visitor is redirected to another page than the one of the form. The redirect page is the one of the option above, of the site setting, of a listener or of the deprecated list page. The warning about a notification mail that could not be sent is suppressed the same way, so a site that sends the visitor to a page of its own in this mode does not tell about it.
An event listener can replace the mode, see AfterSaveJobEvent.
Where the confirmation is shown
The visitor who returns to the form, because no redirect page is set, the
redirect page is the page of the form or it cannot be linked, sees the
confirmation above the form.
The form template renders it from a queue of its own,
academic_. The form is not cached with the
page, so the confirmation is shown once and to that visitor only. A copy of
Templates/ in a site package keeps the line that renders
it, see Keep the confirmation in a copy of the form template.
The visitor who is sent to a redirect page gets the confirmation in the queue
of the plugin, extbase.. No shipped
template renders that queue, and the confirmation stays in the session of the
visitor until a page renders it. The form does not show it either, so it never
turns up there at a later visit.
To show it, render the queue on the redirect page, in a part of that page that
is not cached, for example with a
COA_ that renders a Fluid
template:
<f:flashMessages queueIdentifier="extbase.flashmessages.tx_academicjobs_newjobform" />
A site that shows a confirmation page of its own instead chooses never or Suppress when a redirect page is set, so no message waits in the session.
A submission the form rejects shows the form again with a message at every rejected field, and no other message.
The redirect page in other languages
On a site with more than one language, the form sends the visitor to the redirect page in the language of the form page. A translated content element has its own options, so its translation may name a redirect page of its own.
TYPO3 links no page that has no translation into a language whose fallback is strict, which is the default of a new site language, nor for example a hidden, deleted or missing page, a page restricted to other users or outside its publish dates, or a folder. The form then treats the page as no redirect page: the visitor returns to the form, which shows the confirmation as the flash message creation mode decides for a form without a redirect page. So the mode Suppress when a redirect page is set shows it. The job controller logs a warning that names the redirect page, the page of the form and the language:
The redirect page 6 of the job form on page 5 cannot be linked in language 1 (Deutsch), it is missing, hidden, access restricted, not translated or of a type that cannot be linked. The visitor returns to the form.
The default log configuration of TYPO3 writes it to the log file of the installation, see When the mail cannot be sent for where that is. Translate the redirect page into every language of the form, or choose a page that exists in all of them. This applies to a redirect page from the site setting, from a listener and from the deprecated list page as well.