Skip to content
Snippets Groups Projects
Commit 9b37ee05 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Moved settings to typoscript

parent cfbe9144
No related branches found
No related tags found
No related merge requests found
......@@ -151,9 +151,9 @@ class JoblistController extends ActionController {
}
// look for a configured default job, in case of unsolicited application
if ($jobData === NULL && $this->settings['unsolicitedApplication']) {
if ($jobData === NULL && $this->settings['defaultJobId']) {
/** @var Job $unsoliticedJob */
$unsoliticedJob = $this->jobRepository->findByUid($this->settings['unsolicitedApplication']);
$unsoliticedJob = $this->jobRepository->findByUid($this->settings['defaultJobId']);
$this->view->assign('job', $unsoliticedJob);
}
......
......@@ -28,25 +28,6 @@
</config>
</TCEforms>
</settings.redirectPage>
<settings.unsolicitedApplication>
<TCEforms>
<label>LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs.application_unsoliticed</label>
<config>
<type>group</type>
<internal_type>db</internal_type>
<allowed>tx_sgjobs_domain_model_job</allowed>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
<show_thumbs>1</show_thumbs>
<wizards>
<suggest>
<type>suggest</type>
</suggest>
</wizards>
</config>
</TCEforms>
</settings.unsolicitedApplication>
</el>
</ROOT>
</sDEF>
......
......@@ -25,6 +25,7 @@ plugin.tx_sgjobs {
allowedFileExtensions = {$plugin.tx_sgjobs.settings.allowedFileExtensions}
allowedMimeTypes = {$plugin.tx_sgjobs.settings.allowedMimeTypes}
defaultContactId = 1
defaultJobId =
}
features {
......
......@@ -39,9 +39,13 @@ The Backend module is found in the **WEB** section under the name **Job Offers**
You can create a new job offer by clicking on the **New Job Offer** button.
## Defining a default Job (unsoliticed Application)
In the plugin settings you can set a job offer, which will be used for all **unsoliticed Applications**.
In your typoscript settings you can set a job offer, which will be used for all **unsoliticed Applications**.
If nothing is set, unsolicited applications are not connected to any job offer.
```
settings.defaultJobId = 1
```
## Setting the contact email
When a user applies to a job offer an email will be send. The adress of this email comes either from the
**contact person** assigned to the job, ot if no contact person is set, you can set a default contact person
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment