Skip to content
Snippets Groups Projects
setup.typoscript 1.62 KiB
plugin.tx_sgjobs {
	view {
		templateRootPaths {
			0 = {$plugin.tx_sgjobs.view.templateRootPath}
		}

		partialRootPaths {
			0 = {$plugin.tx_sgjobs.view.partialRootPath}
		}

		layoutRootPaths {
			0 = {$plugin.tx_sgjobs.view.layoutRootPath}
		}
	}

	persistence {
		enableAutomaticCacheClearing = 0
		updateReferenceIndex = 1
	}

	settings {
		allowedFileExtensions = {$plugin.tx_sgjobs.settings.allowedFileExtensions}
		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}
		enableAutomaticRelatedJobs = {$plugin.tx_sgjobs.settings.enableAutomaticRelatedJobs}
		automaticRelatedJobsLimit = {$plugin.tx_sgjobs.settings.automaticRelatedJobsLimit}
	}

	features {
		skipDefaultArguments = 1
	}

	legacy {
		enableLegacyFlashMessageHandling = 0
	}
}

config.recordLinks {
	jobOffer {
		forceLink = 0
		typolink {
			parameter = {$plugin.tx_sgjobs.settings.applicationPid}
			additionalParams = &tx_sgjobs_jobapplication[jobId]={field:uid}
			additionalParams.insertData = 1

			ATagParams.data = parameters:allParams
			target.data = parameters:target
			title.data = parameters:title
		}
	}
}

[{$plugin.tx_project_theme.config.bootstrapVersion} == 5]
    plugin.tx_sgjobs.view.templateRootPaths.10 = EXT:sg_jobs/Resources/Private/Templates/Bootstrap5/
    plugin.tx_sgjobs.view.partialRootPaths.10 = EXT:sg_jobs/Resources/Private/Partials/Bootstrap5/
[end]