Skip to content
Snippets Groups Projects
Commit b6e38815 authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEAUTRE] add option to disallow unsolicited applications

parent 8270e034
No related branches found
No related tags found
No related merge requests found
......@@ -144,6 +144,14 @@ class JoblistController extends ActionController {
$this->request->setArgument('error', NULL);
}
if ($jobId === NULL && $this->settings['disallowUnsolicitedApplication']) {
$uriBuilder = $this->uriBuilder;
$uri = $uriBuilder
->setTargetPageUid($this->settings['offersPage'])
->build();
$this->redirectToUri($uri, 0, 301);
}
$folderName = NULL;
try {
$folderName = $this->request->getArgument('folderName');
......
......@@ -21,6 +21,10 @@ plugin.tx_sgjobs {
allowedMaxFileSize = 5000
# cat=plugin.tx_sgjobs/other; type=int+; label=Page id of the privacy policy page
privacyPolicyPage = 42
# cat=plugin.tx_sgjobs/other; type=int+; UID of the offers page you need to set this if you set disallowUnsolicitedApplication=1
offersPage =
# cat=plugin.tx_sgjobs/other; type=int+; If set to 1, the application-form page will redirect to the overview if no jobId is passed
disallowUnsolicitedApplication = 0
}
pagebrowser.settings {
......
......@@ -26,6 +26,8 @@ plugin.tx_sgjobs {
allowedMimeTypes = {$plugin.tx_sgjobs.settings.allowedMimeTypes}
allowedMaxFileSize = {$plugin.tx_sgjobs.settings.allowedMaxFileSize}
privacyPolicyPage = {$plugin.tx_sgjobs.settings.privacyPolicyPage}
offersPage = {$plugin.tx_sgjobs.settings.offersPage}
disallowUnsolicitedApplication = {$plugin.tx_sgjobs.settings.disallowUnsolicitedApplication}
}
features {
......
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