diff --git a/Classes/Domain/Repository/JobRepository.php b/Classes/Domain/Repository/JobRepository.php index 60efb5afee4b655e64f89dc4662471176944eb6f..d810a5f32ea178fa53ec5f3677a28e0e079306c3 100644 --- a/Classes/Domain/Repository/JobRepository.php +++ b/Classes/Domain/Repository/JobRepository.php @@ -42,6 +42,7 @@ use TYPO3\CMS\Extbase\Persistence\Repository; class JobRepository extends Repository { const TABLENAME = 'tx_sgjobs_domain_model_job'; const ORDER_BY_TITLE = 1; + const ORDER_BY_CRDATE = 2; /** * initializes the object @@ -252,6 +253,14 @@ class JobRepository extends Repository { ); } + if ($ordering === self::ORDER_BY_CRDATE) { + $query->setOrderings( + [ + 'crDate' => QueryInterface::ORDER_DESCENDING + ] + ); + } + $constraints = []; if ($filters['filterCountry'] !== '0' && $filters['filterCountry'] !== NULL) { diff --git a/Configuration/FlexForms/Joblist.xml b/Configuration/FlexForms/Joblist.xml index a0429ed85c4316cda03b8cc6cef294866417d224..8183ec1358dfd3c3ebe17d335175981cb08b0035 100644 --- a/Configuration/FlexForms/Joblist.xml +++ b/Configuration/FlexForms/Joblist.xml @@ -52,6 +52,10 @@ <numIndex index="0">LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.orderBy_2</numIndex> <numIndex index="1">1</numIndex> </numIndex> + <numIndex index="2" type="array"> + <numIndex index="0">LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.orderBy_3</numIndex> + <numIndex index="1">2</numIndex> + </numIndex> </items> </config> </TCEforms> diff --git a/Configuration/TCA/tx_sgjobs_domain_model_company.php b/Configuration/TCA/tx_sgjobs_domain_model_company.php index 533a9e1deaf1a139ee506a15ad31c07ea70d1551..274fc5ea6788c636efca36ce960daba8269dee17 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_company.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_company.php @@ -123,7 +123,7 @@ return [ ], ], 'zip' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.zip', 'config' => [ 'type' => 'input', @@ -132,7 +132,7 @@ return [ ], ], 'city' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.city', 'config' => [ 'type' => 'input', @@ -141,7 +141,8 @@ return [ ], ], 'job_id' => [ - 'exclude' => 0, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.job_id', 'config' => [ 'type' => 'input', @@ -150,7 +151,7 @@ return [ ], ], 'name' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.name', 'config' => [ 'type' => 'input', @@ -159,7 +160,7 @@ return [ ], ], 'street' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.street', 'config' => [ 'type' => 'input', @@ -168,7 +169,7 @@ return [ ], ], 'country' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.country', 'config' => [ 'type' => 'input', @@ -177,7 +178,7 @@ return [ ], ], 'description' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_company.description', 'config' => [ 'type' => 'input', @@ -186,7 +187,7 @@ return [ ], ], 'contact' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.contact', 'config' => [ 'type' => 'select', diff --git a/Configuration/TCA/tx_sgjobs_domain_model_contact.php b/Configuration/TCA/tx_sgjobs_domain_model_contact.php index d2ddba753f4846afca4fd374c490081e97da3fe7..16d113f359bfd065d6cfea3b63a932b37fb543eb 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_contact.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_contact.php @@ -45,7 +45,7 @@ return [ ], 'columns' => [ 'sys_language_uid' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language', 'config' => [ 'type' => 'select', @@ -59,7 +59,7 @@ return [ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent', 'config' => [ 'type' => 'select', @@ -84,21 +84,21 @@ return [ ] ], 'pid' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'PID', 'config' => [ 'type' => 'none', ] ], 'hidden' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden', 'config' => [ 'type' => 'check', ], ], 'starttime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime', 'config' => [ @@ -114,7 +114,7 @@ return [ ], ], 'endtime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime', 'config' => [ @@ -130,7 +130,7 @@ return [ ], ], 'title' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.title', 'config' => [ 'type' => 'input', @@ -139,7 +139,7 @@ return [ ], ], 'first_name' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.first_name', 'config' => [ 'type' => 'input', @@ -148,7 +148,7 @@ return [ ], ], 'last_name' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.last_name', 'config' => [ 'type' => 'input', @@ -157,7 +157,7 @@ return [ ], ], 'street' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.street', 'config' => [ 'type' => 'input', @@ -166,7 +166,7 @@ return [ ], ], 'city' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.city', 'config' => [ 'type' => 'input', @@ -175,7 +175,7 @@ return [ ], ], 'zip' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.zip', 'config' => [ 'type' => 'input', @@ -184,7 +184,7 @@ return [ ], ], 'phone' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.phone', 'config' => [ 'type' => 'input', @@ -193,7 +193,7 @@ return [ ], ], 'email' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.email', 'config' => [ 'type' => 'input', @@ -202,7 +202,7 @@ return [ ], ], 'hide_in_frontend' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_contact.hide_in_frontend', 'config' => [ 'type' => 'check', diff --git a/Configuration/TCA/tx_sgjobs_domain_model_department.php b/Configuration/TCA/tx_sgjobs_domain_model_department.php index f04328b219c2e9f63ef2e32cb3a9d6fa46d4c334..4fe9f47cdc996d4ae7af4e993d6af92544625d5e 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_department.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_department.php @@ -67,7 +67,7 @@ return [ ], 'columns' => [ 'sys_language_uid' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language', 'config' => [ 'type' => 'select', @@ -81,7 +81,7 @@ return [ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent', 'config' => [ 'type' => 'select', @@ -106,21 +106,21 @@ return [ ] ], 'pid' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'PID', 'config' => [ 'type' => 'none', ] ], 'hidden' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden', 'config' => [ 'type' => 'check', ], ], 'starttime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime', 'config' => [ @@ -136,7 +136,7 @@ return [ ], ], 'endtime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime', 'config' => [ @@ -152,7 +152,7 @@ return [ ], ], 'title' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_department.title', 'config' => [ 'type' => 'input', diff --git a/Configuration/TCA/tx_sgjobs_domain_model_job.php b/Configuration/TCA/tx_sgjobs_domain_model_job.php index 7f71b80b42b5874835f6b5503bf55c4a11a0b66e..2c7ca77a5b45c20f5b3b29368cac7c1612bb6738 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_job.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_job.php @@ -47,8 +47,14 @@ return [ 'palette_location_contact' => ['showitem' => 'company, contact', 'canNotCollapse' => 1] ], 'columns' => [ + 'crdate' => [ + 'exclude' => FALSE, + 'config' => [ + 'type' => 'passthrough' + ] + ], 'sys_language_uid' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language', 'config' => [ 'type' => 'select', @@ -57,7 +63,7 @@ return [ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent', 'config' => [ 'type' => 'select', @@ -82,21 +88,21 @@ return [ ] ], 'pid' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'PID', 'config' => [ 'type' => 'none', ] ], 'hidden' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden', 'config' => [ 'type' => 'check', ], ], 'starttime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime', 'config' => [ @@ -112,7 +118,7 @@ return [ ], ], 'endtime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime', 'config' => [ @@ -128,7 +134,7 @@ return [ ], ], 'title' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.title', 'config' => [ 'type' => 'input', @@ -137,7 +143,8 @@ return [ ], ], 'job_id' => [ - 'exclude' => 0, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.jobId', 'config' => [ 'type' => 'input', @@ -146,7 +153,8 @@ return [ ], ], 'department' => [ - 'exclude' => 0, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.department', 'config' => [ 'type' => 'select', @@ -162,28 +170,30 @@ return [ ], ], 'featured_offer' => [ - 'exclude' => 1, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.featuredOffer', 'config' => [ 'type' => 'check', ], ], 'hide_apply_by_email' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.hideApplyByEmail', 'config' => [ 'type' => 'check', ], ], 'hide_apply_by_postal' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.hideApplyByPostal', 'config' => [ 'type' => 'check', ], ], 'start_date' => [ - 'exclude' => 1, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date', 'config' => [ 'type' => 'input', @@ -197,7 +207,7 @@ return [ ], ], 'alternative_start_date' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.alternative_start_date', 'config' => [ 'type' => 'input', @@ -206,7 +216,7 @@ return [ ], ], 'task' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.task', 'config' => [ 'type' => 'text', @@ -217,7 +227,7 @@ return [ 'defaultExtras' => 'richtext[]' ], 'qualification' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.qualification', 'config' => [ 'type' => 'text', @@ -228,7 +238,7 @@ return [ 'defaultExtras' => 'richtext[]' ], 'description' => [ - 'exclude' => 0, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.description', 'config' => [ 'type' => 'text', @@ -239,7 +249,8 @@ return [ 'defaultExtras' => 'richtext[]' ], 'company' => [ - 'exclude' => 0, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.company', 'config' => [ 'type' => 'select', @@ -261,7 +272,8 @@ return [ ] ], 'contact' => [ - 'exclude' => 0, + 'exclude' => TRUE, + 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.contact', 'config' => [ 'type' => 'select', diff --git a/Configuration/TCA/tx_sgjobs_domain_model_job_application.php b/Configuration/TCA/tx_sgjobs_domain_model_job_application.php index 2ea4696084c4c52b6135ea72fe87e8fc4c6af0e5..ea4d7534a47ccf899b6d052337e5d7bfa4d155c7 100644 --- a/Configuration/TCA/tx_sgjobs_domain_model_job_application.php +++ b/Configuration/TCA/tx_sgjobs_domain_model_job_application.php @@ -49,7 +49,7 @@ $tx_sgjobs_domain_model_job_application = [ ], 'columns' => [ 'sys_language_uid' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.language', 'config' => [ 'type' => 'select', @@ -58,7 +58,7 @@ $tx_sgjobs_domain_model_job_application = [ ], 'l10n_parent' => [ 'displayCond' => 'FIELD:sys_language_uid:>:0', - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.l18n_parent', 'config' => [ 'type' => 'select', @@ -83,21 +83,21 @@ $tx_sgjobs_domain_model_job_application = [ ] ], 'pid' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'PID', 'config' => [ 'type' => 'none', ] ], 'hidden' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.hidden', 'config' => [ 'type' => 'check', ], ], 'starttime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.starttime', 'config' => [ @@ -113,7 +113,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'endtime' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'l10n_mode' => 'mergeIfNotBlank', 'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xml:LGL.endtime', 'config' => [ @@ -129,7 +129,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'job_id' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job_id', 'config' => [ 'type' => 'input', @@ -138,7 +138,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'job' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job', 'config' => [ 'type' => 'select', @@ -159,7 +159,7 @@ $tx_sgjobs_domain_model_job_application = [ ] ], 'job_title' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.job_title', 'config' => [ 'type' => 'input', @@ -168,7 +168,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'company' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.company', 'config' => [ 'type' => 'select', @@ -190,7 +190,7 @@ $tx_sgjobs_domain_model_job_application = [ ] ], 'gender' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.gender', 'config' => [ 'type' => 'input', @@ -199,7 +199,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'first_name' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.first_name', 'config' => [ 'type' => 'input', @@ -208,7 +208,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'last_name' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.last_name', 'config' => [ 'type' => 'input', @@ -217,7 +217,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'street' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.street', 'config' => [ 'type' => 'input', @@ -226,7 +226,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'city' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.city', 'config' => [ 'type' => 'input', @@ -235,7 +235,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'zip' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.zip', 'config' => [ 'type' => 'input', @@ -253,7 +253,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'nationality' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.nationality', 'config' => [ 'type' => 'input', @@ -262,7 +262,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'education' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.education', 'config' => [ 'type' => 'input', @@ -271,7 +271,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'birth_date' => [ - 'exclude' => 1, + 'exclude' => TRUE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.birth_date', 'config' => [ 'type' => 'input', @@ -280,7 +280,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'phone' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.phone', 'config' => [ 'type' => 'input', @@ -289,7 +289,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'mobile' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.mobile', 'config' => [ 'type' => 'input', @@ -298,7 +298,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'email' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.email', 'config' => [ 'type' => 'input', @@ -307,7 +307,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'message' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.message', 'config' => [ 'type' => 'text', @@ -316,7 +316,7 @@ $tx_sgjobs_domain_model_job_application = [ ], ], 'cover_letter' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.cover_letter', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( 'cover_letter', @@ -325,7 +325,7 @@ $tx_sgjobs_domain_model_job_application = [ ), ], 'certificate' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.certificate', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( 'certificate', @@ -334,7 +334,7 @@ $tx_sgjobs_domain_model_job_application = [ ), ], 'cv' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.cv', 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( 'cv', @@ -343,7 +343,7 @@ $tx_sgjobs_domain_model_job_application = [ ), ], 'privacy_policy' => [ - 'exclude' => 0, + 'exclude' => FALSE, 'label' => 'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job_application.privacy_policy', 'config' => [ 'type' => 'check', diff --git a/README.md b/README.md index 3d750ce8b45b13cddad27ac1e09d225cd4fdc1da..cb6b59d64c8124bf77bde54c24918ea149010dae 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Repository: https://gitlab.sgalinski.de/typo3/sg_jobs Please report bugs here: https://gitlab.sgalinski.de/typo3/sg_jobs -TYPO3 version: >7.6 +TYPO3 version: >8.7 ## About This extension provides job application functionality for a TYPO3 installation. @@ -76,3 +76,15 @@ access from the .htaccess file. Example: ``` RedirectMatch 403 ^/fileadmin/JobApplication/.*$ ``` + +## Migration from version 1 to version 2 + +If you update from sg_job version 1, you need to execute the Upgrade Wizard, that migrates the old area field. +To do so, please visit the Install Tool and click on Upgrade Wizards. Check the Job Upgrade Wizard and execute it. +This Wizard will migrate your area data into department records. + +Also please be aware of changes to the Fluid template regarding the area -> department migration and change the area +occurences of variables in the template to department records accordingly. + +This version also introduces correct exclude field configurations for the tables, so check your backend user +and backend usergroup permissions and adjust them accordingly. diff --git a/Resources/Private/Language/de.locallang_db.xlf b/Resources/Private/Language/de.locallang_db.xlf index 7e929be32bde9ae396dba9777c0c7decf819e31f..b6ad5f20f4bf06550f7d81d395ba121cd4e1238d 100644 --- a/Resources/Private/Language/de.locallang_db.xlf +++ b/Resources/Private/Language/de.locallang_db.xlf @@ -213,6 +213,10 @@ <source><![CDATA[By title]]></source> <target><![CDATA[Nach Jobtitel]]></target> </trans-unit> + <trans-unit id="tx_sgjobs_domain_model_job.orderBy_3"> + <source><![CDATA[By creation date]]></source> + <target><![CDATA[Nach Erstellungsdatum]]></target> + </trans-unit> <trans-unit id="tx_sgjobs_domain_model_job.plugin_options" approved="yes"> <source><![CDATA[Joblist plugin options]]></source> <target><![CDATA[Joblist Plugin-Optionen]]></target> diff --git a/Resources/Private/Language/locallang_db.xlf b/Resources/Private/Language/locallang_db.xlf index 685739c2506b113c2fae79308b6afff1ec862e0c..cd6ce35930989193ac78c697d9e88a9b77e7f4c4 100644 --- a/Resources/Private/Language/locallang_db.xlf +++ b/Resources/Private/Language/locallang_db.xlf @@ -165,6 +165,9 @@ <trans-unit id="tx_sgjobs_domain_model_job.orderBy_2"> <source><![CDATA[By title]]></source> </trans-unit> + <trans-unit id="tx_sgjobs_domain_model_job.orderBy_3"> + <source><![CDATA[By creation date]]></source> + </trans-unit> <trans-unit id="tx_sgjobs_domain_model_job.plugin_options"> <source><![CDATA[Joblist plugin options]]></source> </trans-unit>